/* AntCo legal/doc pages — based on the provided community-guidelines layout,
   restyled with Space Grotesk + AntCo blue accent. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #2753F4; --blue-dark: #214CCE; --blue-light: #EDF4FF; --blue-mid: #CDE1FD;
  --green: #16a34a; --green-light: #f0fdf4;
  --red: #dc2626; --red-light: #fff1f2;
  --ink: #111827; --ink-mid: #374151; --muted: #6b7280;
  --line: #e5e7eb; --bg: #ffffff; --bg-soft: #f9fafb;
  --sans: 'Space Grotesk', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink-mid); line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }

.page { max-width: 740px; margin: 0 auto; padding: 4rem 2rem 6rem; }

/* back link + brand */
.doc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.doc-top .home { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--blue-dark); text-decoration: none; }
.doc-top .home:hover { text-decoration: underline; }
.doc-top img { height: 26px; }
.doc-top-right { display: inline-flex; align-items: center; gap: .9rem; }

/* EN/ID toggle (matches homepage) */
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; box-shadow: 2px 2px 0 var(--ink); background: #fff; }
.lang button { font-family: var(--mono, 'Space Mono', ui-monospace, monospace); font-weight: 700; font-size: 12px; border: 0; background: #fff; color: var(--ink); padding: 6px 11px; cursor: pointer; line-height: 1; }
.lang button.on { background: var(--ink); color: #fff; }

.page-title { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.4rem; }
.page-sub { font-size: 1rem; color: var(--muted); margin-bottom: 2.5rem; }
.page-meta { font-size: .8rem; color: var(--muted); margin-top: .5rem; }

.toc { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 3rem; }
.toc-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { list-style: none; }
.toc ol li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.toc ol li:last-child { border-bottom: none; }
.toc-num { font-size: 0.72rem; font-weight: 700; color: var(--blue); min-width: 22px; }
.toc ol li a { color: var(--ink-mid); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.toc ol li a:hover { color: var(--blue); }

section { margin-bottom: 3rem; }
[id] { scroll-margin-top: 24px; }
.sec-heading { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.sec-num { font-size: 0.78rem; font-weight: 700; color: var(--blue); flex-shrink: 0; }
section h2 { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; color: var(--ink); letter-spacing: -0.02em; line-height: 1.3; margin: 0; }
.sec-intro { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
section h3 { font-size: 0.98rem; font-weight: 600; color: var(--ink); margin: 1.25rem 0 0.4rem; }
section p { font-size: 0.9rem; color: var(--ink-mid); margin-bottom: 0.75rem; }
section ul { list-style: none; margin: 0.5rem 0 1rem; }
section ul li { font-size: 0.9rem; color: var(--ink-mid); padding: 0.2rem 0 0.2rem 1.1rem; position: relative; }
section ul li::before { content: "·"; position: absolute; left: 0.15rem; color: var(--blue); font-weight: 700; }
section a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
section a:hover { text-decoration: underline; }
strong { font-weight: 600; color: var(--ink); }

.callout { border-radius: 10px; padding: 0.875rem 1.1rem; margin: 1rem 0; font-size: 0.875rem; line-height: 1.7; display: flex; gap: 0.6rem; align-items: flex-start; }
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout.blue { background: var(--blue-light); color: var(--blue-dark); border-left: 3px solid var(--blue); }
.callout.green { background: var(--green-light); color: #166534; border-left: 3px solid var(--green); }
.callout.red { background: var(--red-light); color: #991b1b; border-left: 3px solid var(--red); }

.contact-box { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; margin-top: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-soft); }
.contact-box h3 { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 0 0 0.2rem; }
.contact-box p { font-size: 0.875rem; color: var(--ink-mid); line-height: 1.65; margin: 0; }

.doc-foot { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.doc-foot a { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.doc-foot a:hover { text-decoration: underline; }

/* ── RICHER COMPONENTS (privacy) ── */
.intro-card { border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); background: var(--blue-light); padding: 1.5rem 1.6rem; margin-bottom: 2.5rem; }
.intro-card p { font-size: 0.95rem; color: var(--ink-mid); margin: 0 0 0.7rem; }
.intro-card p:last-child { margin-bottom: 0; }
.intro-card .law { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--blue-dark); }

/* section as a card with number badge */
.section-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.6rem 1.5rem; margin-bottom: 1.25rem; background: var(--bg); transition: box-shadow .15s, border-color .15s; }
.section-card:hover { border-color: var(--blue-mid); box-shadow: 0 6px 20px rgba(39,83,244,.08); }
.section-card .sec-heading { margin-bottom: 0.9rem; align-items: center; }
.section-card .sec-badge { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 0.9rem; }
.section-card h2 { font-size: 1.25rem; }
.section-card > p { margin-top: 0; }

/* labelled data/list chips */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.5rem; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; background: var(--bg-soft); }
.tile .tile-h { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: 0.9rem; margin-bottom: 0.2rem; }
.tile .tile-ic { width: 26px; height: 26px; flex-shrink: 0; border-radius: 7px; background: var(--blue-light); border: 1px solid var(--blue-mid); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.tile p { font-size: 0.82rem; color: var(--muted); margin: 0; }

.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.chip-tag { font-size: 0.82rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: 999px; padding: 0.35rem 0.8rem; }

@media (max-width: 560px) {
  .page { padding: 2.5rem 1.25rem 4rem; }
  .tile-grid { grid-template-columns: 1fr; }
}
