/* JexMac — privacy policy page */

.privacy-page {
    position: relative;
    z-index: 0;
    overflow-x: clip;
}

.privacy-page .container {
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
}

.privacy-page section {
    padding: 0;
}

.privacy-page .btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid rgba(0, 240, 255, 0.45);
}

.privacy-page .btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

/* Split hero — must beat .privacy-page section { padding: 0 } */
.privacy-page section.priv-hero {
    padding: calc(var(--header-height) + 48px) 0 40px;
}

.priv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.priv-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.priv-crumb a {
    color: rgba(0, 240, 255, 0.75);
    transition: color 0.25s;
}

.priv-crumb a:hover {
    color: var(--neon-blue);
}

.priv-crumb-current {
    color: rgba(255, 255, 255, 0.55);
}

.priv-kicker {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid rgba(138, 43, 226, 0.35);
    background: rgba(138, 43, 226, 0.08);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(196, 181, 253, 0.95);
}

.priv-hero h1 {
    font-family: var(--font-tech);
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.24;
    color: #fff;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}

.priv-hero-lead {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 620px;
    margin-bottom: 20px;
}

.priv-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.875rem;
    color: rgba(148, 163, 184, 0.95);
}

.priv-hero-meta a {
    color: var(--neon-blue);
}

.priv-hero-meta a:hover {
    text-decoration: underline;
}

.priv-meta-dot {
    color: rgba(148, 163, 184, 0.35);
}

.priv-scope-card {
    padding: 24px 28px;
    border-radius: 14px;
    border: 1px solid rgba(138, 43, 226, 0.22);
    background: linear-gradient(160deg, rgba(13, 19, 36, 0.85), rgba(5, 9, 20, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.priv-scope-label {
    margin-bottom: 16px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(196, 181, 253, 0.9);
}

.priv-scope-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.priv-scope-list li {
    padding-left: 14px;
    border-left: 2px solid rgba(138, 43, 226, 0.45);
}

.priv-scope-list strong {
    display: block;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: 4px;
}

.priv-scope-list span {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Trust strip */
.priv-trust {
    padding-bottom: 0;
}

.priv-trust-row {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(13, 19, 36, 0.55);
}

.priv-trust-row li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.priv-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.18);
    color: var(--neon-blue);
}

.priv-trust-text {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.9);
}

/* Document shell — content left, rail right */
.priv-shell {
    padding-top: clamp(48px, 6vw, 72px);
    padding-bottom: 64px;
    border-top: 1px solid rgba(0, 240, 255, 0.08);
}

.priv-shell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
}

.priv-document {
    min-width: 0;
}

.priv-section {
    position: relative;
    margin-bottom: 56px;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.priv-document > .priv-section:first-child {
    padding-top: 8px;
}

.priv-section-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 16px;
}

.priv-section-tag {
    flex-shrink: 0;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(138, 43, 226, 0.95);
}

.priv-section-head h2 {
    flex: 1 1 12rem;
    min-width: 0;
    font-family: var(--font-tech);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.priv-section p {
    font-size: 0.9375rem;
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.priv-section > :last-child {
    margin-bottom: 0;
}

.priv-section a {
    color: var(--neon-blue);
}

.priv-section a:hover {
    text-decoration: underline;
}

.priv-section strong {
    color: rgba(226, 232, 240, 0.95);
    font-weight: 600;
}

.priv-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin: 22px 0 12px;
}

/* Data tables */
.priv-table-wrap {
    overflow-x: auto;
    margin: 18px 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.priv-data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.priv-data-table th,
.priv-data-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
}

.priv-data-table th {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    background: rgba(0, 240, 255, 0.04);
}

.priv-data-table tbody tr:last-child td {
    border-bottom: none;
}

.priv-data-table td {
    color: var(--text-muted);
    line-height: 1.65;
}

.priv-data-table td strong {
    color: rgba(226, 232, 240, 0.92);
}

.priv-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.priv-badge--req {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.priv-badge--fn {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.priv-badge--ana {
    color: #c4b5fd;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.25);
}

.priv-badge--sec {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Use & share layout */
.priv-use-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.priv-purpose-list {
    list-style: none;
    margin: 14px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.priv-purpose-list li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.priv-purpose-list li span {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--neon-blue);
}

.priv-share-aside {
    padding: 22px 24px 20px;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.22);
    background: rgba(138, 43, 226, 0.06);
}

.priv-share-lead {
    font-family: var(--font-tech);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(196, 181, 253, 0.98);
    margin-bottom: 14px;
}

.priv-share-aside h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin: 14px 0 8px;
}

.priv-share-aside h3:first-of-type {
    margin-top: 0;
}

.priv-share-aside p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 0;
}

.priv-inline-list {
    list-style: none;
    margin: 0 0 4px;
}

.priv-inline-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.priv-inline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.8);
}

/* Retention timeline */
.priv-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 8px;
    padding-top: 8px;
}

.priv-timeline-track {
    position: absolute;
    top: 18px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(138, 43, 226, 0.35), rgba(0, 240, 255, 0.15));
    pointer-events: none;
}

.priv-timeline-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.priv-timeline-dot {
    width: 12px;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    background: var(--bg-dark);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.priv-timeline-card {
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(13, 19, 36, 0.65);
}

.priv-timeline-card strong {
    display: block;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: 6px;
    line-height: 1.35;
}

.priv-timeline-card p {
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Security checklist */
.priv-checklist {
    list-style: none;
    margin: 14px 0 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.priv-checklist li {
    position: relative;
    padding: 10px 12px 10px 32px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(0, 0, 0, 0.16);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.priv-checklist li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.priv-callout {
    display: flex;
    gap: 12px;
    margin: 16px 0 4px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(253, 230, 138, 0.92);
}

.priv-callout svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(251, 191, 36, 0.9);
}

.priv-callout p {
    margin: 0;
    color: inherit;
}

/* Rights grid */
.priv-rights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 18px;
}

.priv-right-card {
    padding: 18px 18px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(13, 19, 36, 0.5);
}

.priv-right-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    margin-bottom: 8px;
}

.priv-right-card p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* Supplementary details */
.priv-extra-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.priv-details {
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.12);
    background: rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.priv-details summary {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.priv-details summary::-webkit-details-marker {
    display: none;
}

.priv-details summary::after {
    content: '+';
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--neon-blue);
    transition: transform 0.2s;
}

.priv-details[open] summary::after {
    content: '−';
}

.priv-details-body {
    padding: 0 16px 14px;
}

.priv-details-body p {
    margin: 0;
}

/* Closing split */
.priv-closing-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(24px, 4vw, 40px);
    align-items: start;
}

.priv-contact-box {
    padding: 22px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.16);
    background: rgba(0, 240, 255, 0.04);
}

.priv-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.priv-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.priv-contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--neon-blue);
}

.priv-contact-list a {
    color: var(--neon-blue);
}

/* Right rail navigation */
.priv-rail {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    padding: 4px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 43, 226, 0.3) transparent;
}

.priv-rail-title {
    margin-bottom: 12px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
}

.priv-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.priv-rail-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(148, 163, 184, 0.92);
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.priv-rail-link span {
    flex-shrink: 0;
    font-family: var(--font-code);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(138, 43, 226, 0.85);
}

.priv-rail-link:hover {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.04);
}

.priv-rail-link.is-active {
    color: #fff;
    border-color: rgba(138, 43, 226, 0.35);
    background: rgba(138, 43, 226, 0.1);
}

.priv-rail-link.is-active span {
    color: rgba(196, 181, 253, 0.98);
}

/* Related panel */
.priv-related {
    padding: 0 0 100px;
}

.priv-related-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid rgba(138, 43, 226, 0.18);
    background: linear-gradient(135deg, rgba(13, 19, 36, 0.82), rgba(5, 9, 20, 0.92));
}

.priv-related-panel h2 {
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.priv-related-panel p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.priv-related-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}

.priv-related-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
}

/* Responsive — collapse side rail early so content blocks keep full width */
@media (max-width: 1200px) {
    .priv-hero-grid {
        grid-template-columns: 1fr;
    }

    .priv-shell-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .priv-document {
        order: 2;
        padding-top: 16px;
    }

    .priv-rail {
        order: 1;
        position: sticky;
        top: var(--header-height);
        z-index: 40;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
        padding: 12px 0;
        margin-bottom: 28px;
        background: rgba(5, 9, 20, 0.92);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(138, 43, 226, 0.15);
    }

    .priv-rail::-webkit-scrollbar {
        display: none;
    }

    .priv-rail-title {
        display: none;
    }

    .priv-rail-nav {
        flex-direction: row;
        gap: 8px;
        width: max-content;
        min-width: 100%;
        padding: 0 24px 4px;
        box-sizing: border-box;
    }

    .priv-rail-link {
        white-space: nowrap;
        padding: 8px 12px;
        border: 1px solid rgba(138, 43, 226, 0.2);
        background: rgba(0, 0, 0, 0.25);
    }

    .priv-rail-link span {
        display: none;
    }

    .priv-section {
        scroll-margin-top: calc(var(--header-height) + 64px);
    }

    .priv-trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .priv-use-layout,
    .priv-closing-split {
        grid-template-columns: 1fr;
    }

    .priv-rights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .priv-timeline {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .priv-timeline-track {
        display: none;
    }
}

@media (max-width: 720px) {
    .priv-trust-row {
        grid-template-columns: 1fr;
    }

    .priv-checklist,
    .priv-rights-grid {
        grid-template-columns: 1fr;
    }

    .priv-timeline {
        grid-template-columns: 1fr;
    }

    .priv-timeline-node {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .priv-timeline-dot {
        margin-bottom: 0;
        margin-top: 14px;
    }

    .priv-purpose-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .priv-related-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .priv-related-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .priv-related-actions .btn {
        width: 100%;
        letter-spacing: 0.04em;
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    .privacy-page section.priv-hero {
        padding-top: calc(var(--header-height) + 36px);
    }
}
