/* wormate.io — Privacy Policy · premium theme */
:root {
    --bg: #0a0907;
    --bg-2: #12100c;
    --gold: #c9b46a;
    --gold-hi: #ecd98f;
    --sand: #c9b492;
    --text: #d8d1be;
    --muted: #978f7a;
    --line: rgba(201, 180, 106, .18);
    --card: rgba(18, 16, 12, .62);
    --danger: #e0795f;
    --radius: 20px;
    --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    background:
        radial-gradient(1200px 700px at 15% -10%, rgba(201, 180, 106, .12), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(201, 180, 106, .07), transparent 60%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Vanta background ---------- */
#vanta-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}
#vanta-bg canvas { opacity: 0; transition: opacity 1.6s ease; }
body.vanta-on #vanta-bg canvas { opacity: .85; }

/* vignette + subtle grain so text always stays readable over the net */
.bg-vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 35%, transparent 25%, rgba(10, 9, 7, .55) 75%, rgba(10, 9, 7, .9) 100%),
        linear-gradient(to bottom, rgba(10, 9, 7, .35), transparent 30%, transparent 70%, rgba(10, 9, 7, .6));
}

/* ---------- Reading progress ---------- */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--gold), var(--gold-hi));
    box-shadow: 0 0 12px rgba(236, 217, 143, .6);
    z-index: 50;
}

a { color: var(--gold-hi); text-decoration: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-hi);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip {
    position: absolute;
    left: 16px; top: -60px;
    background: var(--gold);
    color: #14110a;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
    font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Layout ---------- */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}

.hero {
    text-align: center;
    padding: 28px 20px 56px;
}

.hero .logo {
    width: 132px;
    height: auto;
    margin: 0 auto 18px;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(201, 180, 106, .35));
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-1.5deg); } }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
    content: "";
    width: 34px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow::after { transform: scaleX(-1); }

.hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -.01em;
    background: linear-gradient(180deg, #fff6d6 0%, var(--gold-hi) 35%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(201, 180, 106, .25);
}

.hero .lead {
    max-width: 560px;
    margin: 18px auto 24px;
    color: var(--muted);
    font-size: 17px;
}

.meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: 13px;
    color: var(--sand);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 16, 12, .5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.chip i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-hi);
    box-shadow: 0 0 10px var(--gold-hi);
}

.layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* ---------- Table of contents ---------- */
.toc {
    position: sticky;
    top: 24px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.toc h2 {
    margin: 0 0 12px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--muted);
    transition: background .25s, color .25s;
}
.toc a span { color: var(--gold); opacity: .6; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); background: rgba(201, 180, 106, .08); }
.toc a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(201, 180, 106, .18), transparent);
    box-shadow: inset 2px 0 0 var(--gold-hi);
}

/* ---------- Sections ---------- */
.content { display: grid; gap: 22px; }

.sec {
    position: relative;
    padding: 32px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 244, 200, .06);
    transition: border-color .35s, transform .35s;
}
.sec::before {
    content: "";
    position: absolute;
    top: 0; left: 34px; right: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .55;
}
.sec:hover { border-color: rgba(201, 180, 106, .38); }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.num {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .1em;
}
.sec h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.25;
    color: #f2e8cd;
}
.sec p { margin: 0 0 14px; color: var(--text); }
.sec p:last-child { margin-bottom: 0; }
.sec p a {
    border-bottom: 1px solid rgba(236, 217, 143, .4);
    transition: border-color .2s, color .2s;
}
.sec p a:hover { color: #fff; border-color: #fff; }

/* data chips */
.data-list {
    list-style: none;
    margin: 4px 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.data-list li {
    padding: 7px 14px;
    font-size: 14px;
    color: var(--sand);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(201, 180, 106, .06);
}

/* warning callout */
.callout {
    display: flex;
    gap: 14px;
    margin: 6px 0 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(224, 121, 95, .4);
    background: linear-gradient(135deg, rgba(224, 121, 95, .14), rgba(224, 121, 95, .04));
}
.callout svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--danger); }
.callout strong { color: #ffb8a4; }

/* steps */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.steps li {
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.steps li::before {
    content: counter(step);
    flex: none;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: #14110a;
    background: linear-gradient(135deg, var(--gold-hi), var(--gold));
}
.steps b { color: var(--gold-hi); font-weight: 600; }

/* timeline */
.timeline { list-style: none; margin: 4px 0 0; padding: 0 0 0 22px; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 5px; top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -22px; top: 9px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--gold-hi);
    box-shadow: 0 0 12px rgba(236, 217, 143, .5);
}
.timeline time {
    display: block;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 22px 20px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}
.site-footer a { color: var(--sand); transition: color .2s; }
.site-footer a:hover { color: #fff; }

.lang { position: relative; }
.lang-button {
    font: inherit;
    color: var(--sand);
    background: rgba(18, 16, 12, .6);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.lang-button:hover { color: #fff; border-color: rgba(201, 180, 106, .5); }
.lang-list {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    min-width: 150px;
    padding: 6px;
    display: none;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(18, 16, 12, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    z-index: 20;
}
.lang.open .lang-list { display: block; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 8px; }
.lang-list a:hover { background: rgba(201, 180, 106, .12); }

/* ---------- Reveal animation (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .layout { grid-template-columns: 1fr; }
    .toc { display: none; }
}
@media (max-width: 560px) {
    .page { padding: 36px 14px 24px; }
    .hero { padding-bottom: 36px; }
    .hero .logo { width: 104px; }
    .sec { padding: 24px 20px; }
    .sec::before { left: 20px; right: 20px; }
    .sec-head { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero .logo { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
    .sec, .toc { background: #14120d; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media print {
    #vanta-bg, .bg-vignette, .progress, .toc, .site-footer { display: none !important; }
    body { background: #fff; color: #000; }
    .sec { background: none; border: 0; box-shadow: none; backdrop-filter: none; }
    .hero h1, .sec h2 { color: #000; background: none; }
}

/* ---------- RTL (Arabic): cermin elemen yang memakai posisi left/right fisik ---------- */
[dir="rtl"] .progress { transform-origin: 100% 50%; }
[dir="rtl"] .toc h2 { margin: 0 8px 12px 0; }
[dir="rtl"] .toc a.active {
    background: linear-gradient(270deg, rgba(201, 180, 106, .18), transparent);
    box-shadow: inset -2px 0 0 var(--gold-hi);
}
[dir="rtl"] .timeline { padding: 0 22px 0 0; }
[dir="rtl"] .timeline::before { left: auto; right: 5px; }
[dir="rtl"] .timeline li::before { left: auto; right: -22px; }
