/* ============================================================
   NO'TA · Legal & Policy pages
   Premium · minimalist · monochrome + green
   Shared by privacy-policy / terms / community-guidelines / account-deletion
   ============================================================ */

@font-face {
    font-family: "Google Sans Flex";
    src: url("assets/fonts/GoogleSansFlex-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink:        #0B0B0C;
    --canvas:     #F6F6F3;
    --surface:    #FFFFFF;
    --muted:      #6E6E73;
    --muted-2:    #9A9A9F;
    --hairline:   rgba(11, 11, 12, 0.10);
    --hairline-2: rgba(11, 11, 12, 0.06);
    --green:      #7AF495;
    --green-deep: #0E9E1E;
    --green-ink:  #053D10;
    --font: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "IBM Plex Sans Arabic", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.legal-page {
    font-family: var(--font);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legal-page a { color: inherit; text-decoration: none; }
.legal-page img { display: block; }

.shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px 80px;
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    padding: 22px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    background: rgba(246, 246, 243, 0.82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    z-index: 20;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.brand-lockup .brand-mark img { width: 34px; height: 34px; border-radius: 9px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-copy span { font-size: 12px; color: var(--muted); }

.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-chip {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 8px 14px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-chip:hover { color: var(--ink); border-color: var(--ink); }
.nav-chip[aria-current="page"] {
    color: var(--green-ink);
    background: rgba(122, 244, 149, 0.18);
    border-color: rgba(14, 158, 30, 0.30);
}

/* ---------- Hero ---------- */
.hero {
    padding: 40px 0 46px;
    border-bottom: 1px solid var(--hairline-2);
    margin-bottom: 46px;
}
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-deep);
    background: rgba(14, 158, 30, 0.10);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin-bottom: 20px;
    max-width: 20ch;
}
.hero p {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    max-width: 70ch;
    margin-bottom: 14px;
}
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
.chip {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 7px 14px;
    transition: border-color 0.2s, color 0.2s;
}
a.chip:hover { color: var(--green-deep); border-color: rgba(14, 158, 30, 0.4); }

/* ---------- Layout: content + TOC ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
    align-items: start;
}

.notice {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 28px;
    font-size: 0.98rem;
    color: var(--ink);
    position: relative;
    padding-inline-start: 26px;
}
.notice::before {
    content: "";
    position: absolute;
    inset-inline-start: 0; top: 14px; bottom: 14px;
    width: 3px;
    background: var(--green);
    border-radius: 999px;
}
.notice strong { font-weight: 700; }

.card.article {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 44px);
}
.card.article > section { scroll-margin-top: 110px; }
.card.article > section + section {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--hairline-2);
}

.article h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 14px;
}
.article h3 {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 22px 0 10px;
}
.article p { color: #2a2a2e; margin-bottom: 14px; }
.article p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: 14px 0; padding-inline-start: 22px; }
.article li { color: #2a2a2e; margin-bottom: 9px; }
.article li::marker { color: var(--green-deep); }
.article a:not(.chip):not(.nav-chip) {
    color: var(--green-deep);
    font-weight: 600;
    border-bottom: 1px solid rgba(14, 158, 30, 0.3);
    transition: border-color 0.2s;
}
.article a:not(.chip):not(.nav-chip):hover { border-bottom-color: var(--green-deep); }
.article strong { font-weight: 700; }

/* ---------- TOC ---------- */
.toc {
    position: sticky;
    top: 104px;
    border: 1px solid var(--hairline);
    border-radius: 18px;
    background: var(--surface);
    padding: 22px 22px 18px;
}
.toc h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.toc li { counter-increment: toc; }
.toc a {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
    padding: 7px 8px;
    border-radius: 9px;
    line-height: 1.4;
    transition: color 0.2s, background 0.2s;
}
.toc a::before { content: counter(toc); color: var(--green-deep); font-weight: 700; min-width: 14px; }
.toc a:hover { color: var(--ink); background: rgba(11, 11, 12, 0.04); }
.toc-meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline-2); font-size: 12px; color: var(--muted-2); }

/* ---------- Footer ---------- */
.page-footer {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.page-footer p { font-size: 0.88rem; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- RTL ---------- */
html[dir="rtl"] .hero h1 { letter-spacing: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .layout { grid-template-columns: 1fr; gap: 0; }
    .toc {
        position: static;
        order: -1;
        margin-bottom: 28px;
    }
}
@media (max-width: 560px) {
    .shell { padding: 0 18px 60px; }
    .site-header { position: static; }
    .card.article { padding: 22px 18px; }
    .page-footer { flex-direction: column; align-items: flex-start; }
}
