/* =========================================================
   SIDHIQ Legal Pages — Kebijakan Privasi & Penghapusan Data
   Palet: navy #072642 / lime #7AB038 / blue #104B83
   ========================================================= */
:root {
    --navy: #072642;
    --navy-2: #0b2545;
    --navy-3: #061a2f;
    --blue: #104b83;
    --blue-soft: #eaf1f8;
    --green: #7ab038;
    --green-dark: #5e8c2a;
    --green-light: #96c95c;
    --green-soft: #eef6e4;
    --bg: #f8fafc;
    --card: #ffffff;
    --ink: #072642;
    --muted: #475569;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --shadow-sm: 0 1px 2px rgba(7, 38, 66, .04), 0 8px 22px -18px rgba(7, 38, 66, .25);
    --shadow-md: 0 18px 40px -26px rgba(7, 38, 66, .4);
    --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(14.5px, .85rem + .15vw, 16px);
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green-dark); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green-light); color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.icon {
    width: 20px; height: 20px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 300; transform: translateY(-160%);
    background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* ============ Header ============ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; color: var(--ink); }
.brand-mark {
    position: relative; width: 38px; height: 38px; border-radius: 11px;
    display: grid; place-items: center; flex: none;
    background: linear-gradient(145deg, var(--blue), var(--navy));
    color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px -7px rgba(7, 38, 66, .7);
}
.brand-mark::after {
    content: ""; position: absolute; right: -3px; bottom: -3px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--green); border: 2.5px solid #fff;
}
.brand-text strong {
    display: block; font-family: var(--font-head); font-size: 16px; font-weight: 800;
    letter-spacing: .09em; line-height: 1;
}
.brand-text small {
    display: block; margin-top: 4px; font-size: 8.5px; font-weight: 600;
    letter-spacing: .15em; text-transform: uppercase; color: var(--muted); line-height: 1;
}
.header-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-nav a {
    display: inline-flex; align-items: center; gap: 5px; min-height: 40px;
    padding: 0 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: var(--muted);
    transition: color .2s ease, background .2s ease;
}
.header-nav a:hover { color: var(--ink); background: #f1f5f9; }
.header-nav .icon { width: 12px; height: 12px; }
.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 42px; padding: 0 17px; border-radius: 9px;
    background: var(--green); color: var(--navy);
    font-size: 12.5px; font-weight: 700;
    box-shadow: 0 8px 18px -12px rgba(122, 176, 56, .7);
}
.header-cta:hover { background: var(--green-light); color: var(--navy); }
.header-cta .icon { width: 14px; height: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }

/* ============ Hero ============ */
.legal-hero {
    position: relative; overflow: hidden; color: #fff;
    padding: clamp(34px, 4.5vw, 52px) 0 clamp(32px, 4vw, 46px);
    background:
        radial-gradient(720px 420px at 88% -20%, rgba(122, 176, 56, .22), transparent 62%),
        radial-gradient(560px 380px at -8% 40%, rgba(16, 75, 131, .32), transparent 60%),
        linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
}
.legal-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 10%, transparent 78%);
    mask-image: radial-gradient(ellipse 85% 100% at 50% 0%, #000 10%, transparent 78%);
}
.legal-hero .container { position: relative; z-index: 1; }
.back-link {
    display: flex; width: max-content; align-items: center; gap: 6px;
    margin-bottom: 14px; color: rgba(255, 255, 255, .68);
    font-size: 11.5px; font-weight: 600;
}
.back-link:hover { color: var(--green-light); }
.back-link .icon { width: 13px; height: 13px; }
.legal-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 11px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    font-size: 9.5px; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: rgba(255, 255, 255, .9);
}
.legal-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.legal-hero h1 {
    margin-top: 14px;
    font-family: var(--font-head);
    font-size: clamp(2rem, 1.55rem + 2vw, 3.15rem);
    line-height: 1.08; letter-spacing: -.045em; font-weight: 800;
    max-width: 22ch; text-wrap: balance;
}
.legal-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px;
    margin-top: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .62);
}
.legal-meta strong { color: #fff; font-weight: 700; }
.legal-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

/* ============ Layout ============ */
.legal-main { padding: clamp(26px, 3.5vw, 40px) 0 clamp(44px, 5vw, 64px); }
.legal-layout {
    display: grid; grid-template-columns: 248px minmax(0, 1fr);
    gap: 26px; align-items: start;
}
.toc {
    position: sticky; top: 96px;
    padding: 16px; background: var(--card);
    border: 1px solid var(--border); border-radius: 13px;
    box-shadow: var(--shadow-sm);
}
.toc-title {
    display: block; margin-bottom: 8px;
    font-size: 9px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted);
}
.toc a {
    display: block; padding: 7px 8px; margin: 1px -4px;
    border-radius: 7px; font-size: 11.5px; line-height: 1.4;
    font-weight: 600; color: var(--muted);
    transition: background .18s ease, color .18s ease;
}
.toc a:hover { background: var(--green-soft); color: var(--green-dark); }
.toc .toc-back {
    display: flex; align-items: center; gap: 6px;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--blue);
}
.toc .toc-back .icon { width: 12px; height: 12px; }

/* ============ Article ============ */
.legal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 46px);
}
.legal-intro {
    padding-bottom: 22px; margin-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px; line-height: 1.75; color: var(--muted);
}
.legal-intro strong { color: var(--ink); }
.legal-section { padding-top: 24px; scroll-margin-top: 98px; }
.legal-section + .legal-section { border-top: 1px solid #eef2f6; margin-top: 24px; }
.legal-section h2 {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: var(--font-head);
    font-size: clamp(17px, 1rem + .35vw, 21px);
    line-height: 1.25; letter-spacing: -.025em; font-weight: 800;
    color: var(--ink);
}
.legal-section h2::before {
    content: ""; width: 4px; height: 19px; margin-top: 2px;
    border-radius: 3px; background: var(--green); flex: none;
}
.legal-section h3 {
    margin: 18px 0 6px;
    font-family: var(--font-head); font-size: 14px;
    font-weight: 700; letter-spacing: -.01em;
}
.legal-section p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.legal-section p strong { color: var(--ink); }
.legal-section a { font-weight: 600; }

.legal-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.legal-list li {
    position: relative; padding-left: 18px;
    font-size: 13.5px; line-height: 1.7; color: var(--muted);
}
.legal-list li::before {
    content: ""; position: absolute; left: 0; top: .6em;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
}
.legal-list li strong { color: var(--ink); }
.legal-list .nested { margin-top: 6px; gap: 5px; }
.legal-list .nested li::before { background: var(--border-strong); width: 5px; height: 5px; }

.legal-steps { counter-reset: step; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; list-style: none; }
.legal-steps > li {
    position: relative; list-style: none; padding-left: 34px;
    font-size: 13.5px; line-height: 1.7; color: var(--muted);
}
.legal-steps > li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 1px;
    width: 23px; height: 23px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--green-soft); color: var(--green-dark);
    font-family: var(--font-head); font-size: 10px; font-weight: 800;
}
.legal-steps strong { color: var(--ink); }

.callout {
    margin-top: 14px; padding: 14px 16px;
    border: 1px solid var(--border); border-left: 3px solid var(--green);
    border-radius: 9px; background: #fbfdff;
    font-size: 13px; line-height: 1.7; color: var(--muted);
}
.callout strong { color: var(--ink); }
.callout.warning { border-left-color: #d97706; background: #fffbeb; }

.contact-panel {
    margin-top: 18px; padding: 20px;
    border: 1px solid var(--border); border-radius: 12px;
    background: linear-gradient(145deg, #fbfdff, #f4f8fb);
}
.contact-panel h3 { margin: 0; font-family: var(--font-head); font-size: 14.5px; font-weight: 700; }
.contact-panel p { margin-top: 4px; font-size: 12.5px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-action {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; padding: 0 12px; border-radius: 8px;
    border: 1px solid var(--border); background: #fff;
    font-size: 11.5px; font-weight: 700; color: var(--ink);
}
.contact-action:hover { border-color: var(--green); background: var(--green-soft); }
.contact-action .icon { width: 14px; height: 14px; color: var(--green-dark); }

/* ============ Footer ============ */
.site-footer {
    padding: 26px 0 calc(24px + env(safe-area-inset-bottom));
    background: var(--navy-3); color: rgba(255, 255, 255, .55);
    border-top: 4px solid var(--green); font-size: 11px;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a { color: rgba(255, 255, 255, .6); font-weight: 600; }
.footer-nav a:hover { color: var(--green-light); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    .legal-layout { grid-template-columns: 1fr; }
    .toc { position: static; order: 2; }
    .legal-card { order: 1; }
    .toc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
    .toc .toc-back { margin-top: 8px; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 32px); }
    .header-nav { display: none; }
    .header-actions { margin-left: auto; }
    .header-cta { min-height: 40px; padding: 0 13px; font-size: 11.5px; }
    .header-cta .icon { display: none; }
    .legal-hero { padding: 28px 0 32px; }
    .legal-meta { font-size: 11px; }
    .legal-main { padding-top: 22px; }
    .legal-card { padding: 22px 18px; border-radius: 14px; }
    .legal-intro { font-size: 13.5px; }
    .legal-section p { font-size: 13.5px; }
    .legal-list li, .legal-steps > li { font-size: 13px; }
    .toc-links { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media print {
    .site-header, .toc, .site-footer, .back-link, .contact-actions { display: none !important; }
    body { background: #fff; }
    .legal-hero { background: #fff !important; color: #000 !important; padding: 0 0 18px; }
    .legal-hero::before { display: none; }
    .legal-hero h1, .legal-meta { color: #000 !important; }
    .legal-layout { display: block; }
    .legal-card { border: 0; box-shadow: none; padding: 0; }
}
