/* ============================
   AI Hair Styler — Privacy Policy
   Relies on ../style.css for design tokens, header, footer, and buttons.
   This file only styles the policy content itself.
   ============================ */

.nav-current {
    color: var(--primary-dark) !important;
    position: relative;
}

.nav-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Content card */
.main {
    background: var(--surface);
    margin: 6rem 0 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.policy-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.policy-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.policy-hero p {
    font-size: 1.125rem;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
}

.meta-info {
    background: var(--bg);
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.meta-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-info-row span {
    color: var(--muted);
    font-size: 0.875rem;
}

.content {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.toc h3 {
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.toc a:hover,
.toc a.active {
    color: var(--primary-dark);
    border-left-color: var(--primary);
}

.toc a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Article Content */
.article {
    max-width: none;
}

.section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.section h2 {
    color: var(--ink);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.section h3 {
    color: var(--ink);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section h4 {
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.section p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.section li {
    color: var(--muted);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.section strong {
    color: var(--ink);
    font-weight: 700;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-left-color: var(--gold);
}

.highlight-box.success {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-left-color: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
        background: var(--bg);
        padding: 1.5rem;
        border-radius: 8px;
        order: -1;
    }

    .toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .toc li {
        margin-bottom: 0;
    }

    .toc a {
        padding: 0.5rem 1rem;
        background: var(--surface);
        border-radius: 6px;
        border-left: none;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .main {
        margin-top: 5rem;
    }

    .policy-hero h1 {
        font-size: 2rem;
    }

    .policy-hero p {
        font-size: 1rem;
    }

    .meta-info-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .content {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .toc ul {
        flex-direction: column;
    }
}
