/*
 * seller.id — halaman hukum (Syarat & Ketentuan, Kebijakan Privasi).
 * Direction "Buku Kas" (docs/design/visual-direction.md §1 token + §3 aturan).
 *
 * Ini dokumen buat DIBACA, bukan dashboard: satu kolom, ukur baris ~68ch,
 * hierarki heading yang jelas, dan nol elemen dekoratif — stempel tetap jadi
 * satu-satunya kemewahan di produk ini, dan tempatnya bukan di sini.
 *
 * Served as a plain file from public/css (copy of this source) — no build
 * step. Fonts bundled locally in public/fonts, NEVER a runtime CDN.
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/public-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Public Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/public-sans-latin-500-normal.woff2') format('woff2');
}

/* --------------------------------------------------------------- tokens */

:root {
    --paper: #F6F7F4;
    --ink: #1C2B33;
    --ruling: #DDE3DC;
    --stamp-green: #0F6B54;
    --pending-ink: #B7791F;
    --data-blue: #2563A8;
    --muted: #5C6B72;
    --kartu: #FFFFFF;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ----------------------------------------------------------------- base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.legal {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    background: var(--kartu);
    color: var(--ink);
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ruling);
    border-radius: 8px;
}

a {
    color: var(--data-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 2px solid var(--data-blue);
    outline-offset: 2px;
}

/* -------------------------------------------------------------- chrome */

.legal-atas {
    border-bottom: 1px solid var(--ruling);
    background: var(--kartu);
}

.legal-atas__baris {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-merek {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
}

/* Wordmark: "seller.id" is one word, so the .id only steps back a weight and
   a shade — never far enough to read as a separate token. */
.merek__id {
    font-weight: 500;
    color: var(--muted);
}

.legal-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------- konten */

/*
 * Ukur baris ~68ch: batas kenyamanan baca teks panjang. Kartu putih di atas
 * paper, radius 10px, border ruling, tanpa drop-shadow tebal (§1).
 */
.legal-wadah {
    max-width: 68ch;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.legal-kartu {
    background: var(--kartu);
    border: 1px solid var(--ruling);
    border-radius: 10px;
    padding: 1.75rem 1.5rem 2.25rem;
}

@media (max-width: 30rem) {
    .legal-kartu {
        padding: 1.25rem 1rem 1.75rem;
    }
}

.legal-judul {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 0 0 0.35rem;
}

.legal-tanggal {
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/*
 * Disclaimer draft. Warnanya pending-ink (kuning tembaga = "belum diputuskan")
 * karena memang itu statusnya: template yang belum ditinjau pengacara.
 * Wajib kelihatan tanpa scroll, jadi duduk paling atas.
 */
.legal-peringatan {
    margin: 0 0 2rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--pending-ink);
    border-left-width: 4px;
    border-radius: 8px;
    background: rgba(183, 121, 31, 0.07);
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal-peringatan strong {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.legal-intro {
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.legal-daftar-isi {
    margin: 0 0 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--ruling);
    border-radius: 8px;
}

.legal-daftar-isi p {
    margin: 0 0 0.5rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
}

.legal-daftar-isi ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.legal-daftar-isi li {
    margin-bottom: 0.2rem;
}

.legal-seksi {
    padding-top: 1.75rem;
    border-top: 1px solid var(--ruling);
    margin-top: 1.75rem;
}

.legal-seksi:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.legal-seksi h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0 0 0.6rem;
    scroll-margin-top: 1rem;
}

.legal-seksi h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    margin: 1.25rem 0 0.4rem;
}

.legal-seksi p {
    margin: 0 0 0.9rem;
}

.legal-seksi ul,
.legal-seksi ol {
    margin: 0 0 0.9rem;
    padding-left: 1.25rem;
}

.legal-seksi li {
    margin-bottom: 0.4rem;
}

.legal-seksi p:last-child,
.legal-seksi ul:last-child,
.legal-seksi ol:last-child {
    margin-bottom: 0;
}

.legal-kaki {
    max-width: 68ch;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
