/* ── LAYOUT ── */
html {
    scroll-behavior: smooth;
}

/* ── SUBTLE BG GLOW ── */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, hsl(var(--primary) / 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── TOP BAR ── */
.top-bar {
    justify-content: space-between;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem 0.35rem 0.55rem;
    border-radius: 8px;
    background: transparent;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.btn-back:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent));
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── PAGE WRAPPER ── */
.page {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
}

/* ── HEADER ── */
.policy-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid hsl(var(--border));
}

.policy-header h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    color: hsl(var(--foreground));
    margin-bottom: 0.4rem;
}

.policy-subtitle {
    font-size: 0.85rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* ── BODY TEXT ── */
.page p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.page a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page a:hover {
    opacity: 0.8;
}

/* ── SECTIONS ── */
.section {
    margin-top: 2.5rem;
}

.section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid hsl(var(--border));
}

/* ── LISTS ── */
.page ul,
.page ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.page li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: hsl(var(--foreground));
    margin-bottom: 0.35rem;
}

/* ── TABLE ── */
.table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 1.25rem;
    border-radius: 8px;
    border: 1px solid hsl(var(--border));
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead tr {
    background: hsl(var(--accent));
}

th {
    text-align: left;
    padding: 0.6rem 0.85rem;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    border-bottom: 1px solid hsl(var(--border));
    white-space: nowrap;
}

td {
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid hsl(var(--border));
    vertical-align: top;
    color: hsl(var(--foreground));
    line-height: 1.6;
}

tr:last-child td {
    border-bottom: none;
}

/* ── CALLOUT ── */
.callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-left: 3px solid hsl(var(--primary));
    background: hsl(var(--primary) / 0.06);
    padding: 0.85rem 1rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    margin: 1.75rem 0;
    color: hsl(var(--foreground));
    line-height: 1.7;
}

.callout-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* footer styles in theme.css */
