/* ===========================================
   Privacy — Scandinavian Clean / Nordic Minimal
   =========================================== */

/* ── Hero ── */
.privacy-hero {
    padding: calc(60px + var(--space-2xl)) 0 var(--space-xl);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.privacy-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.privacy-hero-heading {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.privacy-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.privacy-version {
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.privacy-lead {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 720px;
}

/* ── Two-column body ── */
.privacy-body {
    padding: var(--space-xl) 0 var(--space-3xl);
    background: var(--bg-primary);
}

.privacy-body-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* ── Table of Contents ── */
.privacy-toc {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.toc-nav {
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.toc-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-list a {
    display: block;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
    line-height: 1.5;
}

.toc-list a:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.toc-list a.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 500;
}

/* ── Document content area ── */
.privacy-document {
    max-width: 720px;
}

/* ── Section blocks ── */
.doc-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 80px;
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ── Section title ── */
.doc-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

/* ── Subtitles with left accent border ── */
.doc-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    line-height: 1.5;
}

/* ── Body text ── */
.doc-text {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: var(--space-sm);
}

/* ── Lists with small accent-colored dots ── */
.doc-list {
    margin: var(--space-sm) 0 var(--space-md);
    padding-left: 0;
}

.doc-list li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 8px;
}

.doc-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

/* ── Notes — subtle background card ── */
.doc-note {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--border-strong);
}

/* ── Callout — accent-tinted emphasis block ── */
.doc-callout {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.8;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent);
}

/* ── Definition grid (Section 2) ── */
.definition-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--space-md);
}

.definition-card {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.definition-card:hover {
    border-color: var(--accent-border);
}

.definition-term {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.definition-desc {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.75;
}

/* ── Retention table (Section 5) ── */
.retention-table {
    margin: var(--space-md) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.retention-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border);
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-header {
    background: var(--bg-subtle);
}

.retention-header .retention-type,
.retention-header .retention-period {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.retention-type,
.retention-period {
    padding: 12px var(--space-sm);
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.retention-type {
    font-weight: 500;
    color: var(--text-primary);
    border-right: 1px solid var(--border);
}

/* ── PII card grid (Section 8) ── */
.pii-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.pii-card {
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pii-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-sm);
}

.pii-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-size: 15px;
    margin-bottom: 12px;
}

.pii-card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pii-card-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.75;
}

/* ── Rights grid (Section 10) ── */
.rights-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: var(--space-md) 0;
}

.rights-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px var(--space-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s ease;
}

.rights-item:hover {
    border-color: var(--accent-border);
}

.rights-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-md);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rights-content {
    flex: 1;
    min-width: 0;
}

.rights-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rights-content span {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* ── Breach response steps (Section 13) ── */
.breach-steps {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.breach-step {
    display: flex;
    gap: var(--space-sm);
    position: relative;
    padding-bottom: var(--space-md);
}

.breach-step:last-child {
    padding-bottom: 0;
}

.breach-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.breach-step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.breach-step-body {
    flex: 1;
    padding-top: 6px;
}

.breach-step-body h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.breach-step-body p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.75;
}

/* ── Contact card ── */
.contact-card {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.contact-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 80px;
    font-size: 13px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Final thank-you text ── */
.doc-final {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .privacy-body-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .privacy-toc {
        position: static;
        max-height: none;
        margin-bottom: var(--space-lg);
    }

    .toc-nav {
        padding: var(--space-sm) var(--space-md);
    }

    .toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }

    .pii-grid {
        grid-template-columns: 1fr;
    }

    .retention-row {
        grid-template-columns: 140px 1fr;
    }
}

@media (max-width: 600px) {
    .privacy-hero {
        padding: calc(60px + var(--space-xl)) 0 var(--space-md);
    }

    .privacy-hero-heading {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .privacy-title {
        font-size: 26px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .doc-title {
        font-size: 19px;
    }

    .pii-grid {
        grid-template-columns: 1fr;
    }

    .retention-row {
        grid-template-columns: 1fr;
    }

    .retention-type {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 6px;
    }

    .retention-period {
        padding-top: 6px;
    }

    .contact-item {
        flex-direction: column;
        gap: 2px;
    }

    .contact-label {
        min-width: auto;
    }

    .contact-card {
        padding: var(--space-sm) var(--space-md);
    }

    .rights-item {
        flex-direction: column;
        gap: 8px;
    }

    .breach-step-num {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .breach-step:not(:last-child)::after {
        left: 15px;
        top: 34px;
    }
}
