/* ============================================================
   TSF PRIVACY PAGE
   Reads the design tokens from style.css. Adds only layout
   and typography specific to a long-form legal notice.
   ============================================================ */

.page-privacy {
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 12px 20px;
    background: var(--red-core);
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}

/* --- Shell + container --- */
.privacy-shell {
    flex: 1;
    padding-top: calc(var(--header-h) + var(--space-7));
}

.privacy-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.privacy-hero {
    padding-bottom: var(--space-9);
    border-bottom: 1px solid var(--line-subtle);
}

.privacy-hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.75rem, 8vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-5);
}

.privacy-hero-title em {
    font-style: italic;
    color: var(--red-core);
}

.privacy-hero-lede {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 var(--space-6);
    max-width: 640px;
}

/* --- Scope notice --- */
.privacy-note {
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-left: 3px solid var(--red-core);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    max-width: 720px;
}

.privacy-note p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-note strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-note code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    padding: 2px 6px;
    color: var(--red-core);
    background: var(--red-subtle);
    border-radius: 4px;
}

/* ============================================================
   BODY SECTIONS
   ============================================================ */
.privacy-body {
    padding: var(--space-9) 0 var(--space-10);
}

.privacy-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-7) 0;
    border-bottom: 1px solid var(--line-subtle);
}

.privacy-section:first-of-type {
    padding-top: 0;
}

.privacy-section:last-of-type {
    border-bottom: 0;
}

@media (min-width: 700px) {
    .privacy-section {
        grid-template-columns: 60px 1fr;
        gap: var(--space-6);
        padding: var(--space-8) 0;
    }
}

/* --- Index number --- */
.privacy-index {
    display: flex;
    align-items: flex-start;
}

.privacy-index-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--red-core);
    padding-top: 6px;
}

@media (min-width: 700px) {
    .privacy-index-num {
        padding-top: 10px;
    }
}

/* --- Content --- */
.privacy-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}

.privacy-content h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.privacy-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-content a {
    color: var(--red-core);
    border-bottom: 1px solid var(--red-line);
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.privacy-content a:hover {
    color: var(--red-hover);
    border-bottom-color: var(--red-hover);
}

/* --- Lists --- */
.privacy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
}

.privacy-list li {
    position: relative;
    padding-left: 22px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.privacy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--red-core);
}

.privacy-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Details list (used in section 01) --- */
.privacy-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin: var(--space-3) 0 0;
    padding: var(--space-5) 0 0;
    border-top: 1px solid var(--line-subtle);
}

@media (min-width: 640px) {
    .privacy-details {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
}

.privacy-details > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.privacy-details dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.privacy-details dd {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

/* --- Contact row in section 08 --- */
.privacy-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-2) 0;
}

.privacy-fine {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: var(--space-2);
}

/* --- Review flag (section 09) --- */
.privacy-review-flag {
    padding: var(--space-5);
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-left: 3px solid #E6B41E;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: var(--space-3);
}

.privacy-review-flag p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.privacy-review-flag strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================
   BOTTOM BAR
   ============================================================ */
.privacy-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line-subtle);
}

.privacy-bottom-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.privacy-bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--red-core);
    border-bottom: 1px solid var(--red-line);
    transition: color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}

.privacy-bottom-link:hover {
    color: var(--red-hover);
    border-bottom-color: var(--red-hover);
}

/* ============================================================
   FOOTER
   ============================================================ */
.privacy-footer {
    border-top: 1px solid var(--line-subtle);
    padding: var(--space-7) 0 var(--space-5);
    background: var(--bg-secondary);
    margin-top: auto;
}

.privacy-footer-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .privacy-footer-row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.privacy-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

@media (min-width: 640px) {
    .privacy-footer-brand {
        align-items: flex-start;
    }
}

.privacy-footer-mark {
    height: 24px;
    width: auto;
    object-fit: contain;
}

[data-theme="light"] .privacy-footer-mark {
    filter: brightness(0);
}

.privacy-footer-brand p {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0;
}

.privacy-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.privacy-footer-links a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease-out);
}

.privacy-footer-links a:hover {
    color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 899px) {
    .privacy-hero-title {
        font-size: clamp(2.25rem, 10vw, 3.25rem);
    }

    .privacy-hero-lede {
        font-size: 1rem;
    }

    .privacy-body {
        padding: var(--space-7) 0 var(--space-8);
    }

    .privacy-section {
        padding: var(--space-6) 0;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .site-header, .mobile-menu, .privacy-footer, .skip-link, .privacy-contact-row { display: none !important; }
    .privacy-shell { padding-top: 0; }
    .privacy-hero, .privacy-note, .privacy-section, .privacy-review-flag {
        border-color: #ccc !important;
        background: #fff !important;
        color: #000 !important;
    }
    .privacy-hero-title, .privacy-content h2 { color: #000 !important; }
    .privacy-content a { color: #000 !important; border-color: #999 !important; }
    .privacy-index-num { color: #444 !important; }
    .privacy-list li::before { border-color: #444 !important; }
    .privacy-note code { background: #eee !important; color: #000 !important; }
    .privacy-section { break-inside: avoid-page; padding: 12px 0; }
    .privacy-container { max-width: 100%; }
}
