﻿html {
    scroll-behavior: smooth;
}

.auth-shell-wide .auth-main > .container {
    max-width: 1380px;
}

.privacy-page {
    padding: 1rem 0 2.5rem;
}

.privacy-hero,
.privacy-nav-card,
.privacy-section-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e7edf5;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.privacy-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1.35rem, 2vw, 2rem);
    border-radius: 28px;
    margin-bottom: 1.5rem;
    background: radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 38%), radial-gradient(circle at 0% 0%, rgba(124, 58, 237, 0.08), transparent 32%), rgba(255, 255, 255, 0.96);
}

.privacy-kicker,
.privacy-section-kicker,
.privacy-nav-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.privacy-title {
    margin: 0.4rem 0 0.55rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
}

.privacy-subtitle {
    max-width: 58rem;
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

.privacy-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

.privacy-updated-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
}

.privacy-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.privacy-nav-card {
    position: sticky;
    top: 96px;
    padding: 1rem;
    border-radius: 24px;
}

.privacy-nav {
    gap: 0.45rem;
}

    .privacy-nav .list-group-item {
        border: 1px solid #e7edf5;
        border-radius: 16px !important;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #334155;
        background: #fff;
    }

        .privacy-nav .list-group-item:hover {
            background: #f8fafc;
            color: #0f172a;
        }

        .privacy-nav .list-group-item.active,
        .privacy-nav .toc-link.active {
            background: rgba(37, 99, 235, 0.08);
            color: #1d4ed8;
            border-color: rgba(37, 99, 235, 0.22);
        }

.privacy-section-card {
    border-radius: 24px;
    padding: 1.35rem;
    margin-bottom: 1.25rem;
}

.privacy-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.privacy-section-title {
    margin: 0.35rem 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.privacy-section-card p,
.privacy-section-card li {
    color: #475569;
    line-height: 1.75;
}

.privacy-list {
    padding-left: 1.1rem;
}

    .privacy-list li + li {
        margin-top: 0.5rem;
    }

.privacy-muted {
    color: #64748b;
}

.privacy-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}

    .privacy-status-badge.is-allowed {
        color: #166534;
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .privacy-status-badge.is-disabled {
        color: #92400e;
        background: #fffbeb;
        border-color: #fde68a;
    }

.privacy-cookie-pref {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    margin: 1rem 0 1.25rem;
}

.privacy-cookie-pref-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #334155;
}

    .privacy-cookie-pref-copy strong {
        color: #0f172a;
    }

    .privacy-cookie-pref-copy small {
        color: #64748b;
        font-size: 0.85rem;
    }

.privacy-cookie-pref-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.65rem;
}

.privacy-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

    .privacy-btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8, #4338ca) !important;
    }

.privacy-table-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.privacy-table-shell {
    overflow: hidden;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    background: #fff;
    margin-bottom: 1rem;
}

.privacy-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-bottom-color: #e7edf5;
}

.privacy-table td,
.privacy-table th {
    padding: 0.85rem 0.9rem;
    border-color: #edf2f7;
    vertical-align: middle;
}

.privacy-table code {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .privacy-nav-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .privacy-page {
        padding-top: 0.5rem;
    }

    .privacy-hero,
    .privacy-cookie-pref,
    .privacy-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .privacy-hero,
    .privacy-nav-card,
    .privacy-section-card {
        border-radius: 22px;
    }

    .privacy-hero-actions,
    .privacy-action-row {
        align-items: stretch;
        justify-content: flex-start;
    }

        .privacy-action-row .btn,
        .privacy-cookie-pref-actions .btn {
            width: 100%;
        }
}
