/* FORZIMA Legal Pages Styles */
/* Privacy Policy & Terms of Service */

/* ===== LEGAL HERO ===== */
.legal-hero {
    background: var(--light-gray);
    padding: 6rem 0 3rem 0;
    margin-top: 70px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--charcoal);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.last-updated {
    font-size: 1rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* ===== LEGAL CONTENT LAYOUT ===== */
.legal-content {
    padding: 4rem 0;
    background: white;
}

.content-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--element-padding);
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ===== TABLE OF CONTENTS SIDEBAR ===== */
.toc-sidebar {
    position: sticky;
    top: 100px;
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--primary-silver);
}

.toc-sidebar h3 {
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--charcoal);
    text-decoration: none;
    border-radius: 0.4rem;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toc-list a:hover {
    background: var(--primary-gold);
    color: white;
    transform: translateX(5px);
}

.toc-list a:active,
.toc-list a.active {
    background: var(--navy);
    color: white;
}

/* ===== LEGAL MAIN CONTENT ===== */
.legal-main {
    background: white;
    border-radius: 1rem;
    padding: 0;
}

.legal-section,
.terms-section,
.intro-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.legal-section:last-child,
.terms-section:last-child,
.intro-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2,
.terms-section h2,
.intro-section h2 {
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--light-gray);
    display: inline-block;
}

.legal-section h3,
.terms-section h3,
.intro-section h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.legal-section h4,
.terms-section h4,
.intro-section h4 {
    color: var(--charcoal);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 600;
}

.legal-section p,
.terms-section p,
.intro-section p {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.legal-section ul,
.legal-section ol,
.terms-section ul,
.terms-section ol,
.intro-section ul,
.intro-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-section li,
.terms-section li,
.intro-section li {
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.legal-section li strong,
.terms-section li strong,
.intro-section li strong {
    color: var(--navy);
}

/* ===== SPECIAL ELEMENTS ===== */
.legal-section strong,
.terms-section strong,
.intro-section strong {
    color: var(--navy);
    font-weight: 600;
}

.legal-section em,
.terms-section em,
.intro-section em {
    color: var(--primary-gold);
    font-style: normal;
    font-weight: 600;
}

.legal-section a,
.terms-section a,
.intro-section a {
    color: var(--primary-gold);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.legal-section a:hover,
.terms-section a:hover,
.intro-section a:hover {
    color: var(--navy);
}

/* ===== TABLES ===== */
.cookie-table,
.retention-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.cookie-table thead,
.retention-table thead {
    background: var(--navy);
    color: white;
}

.cookie-table th,
.retention-table th,
.cookie-table td,
.retention-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.cookie-table th,
.retention-table th {
    font-weight: 600;
    font-size: 1rem;
}

.cookie-table td,
.retention-table td {
    color: var(--charcoal);
    font-size: 0.95rem;
}

.cookie-table tbody tr:nth-child(even),
.retention-table tbody tr:nth-child(even) {
    background: var(--light-gray);
}

.cookie-table tbody tr:hover,
.retention-table tbody tr:hover {
    background: rgba(201, 169, 97, 0.1);
}

/* ===== RIGHTS GRID ===== */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.8rem;
    border-left: 4px solid var(--primary-gold);
    transition: var(--transition-smooth);
}

.right-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.right-item h4 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.right-item p {
    color: var(--charcoal);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== CONTACT INFO GRID ===== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.8rem;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.contact-method:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-method h4 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-method h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.contact-method p {
    color: var(--charcoal);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.contact-method em {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.contact-method a {
    color: var(--primary-gold);
    font-weight: 600;
}

/* ===== LEGAL CTA SECTION ===== */
.legal-cta {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.legal-cta h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.legal-cta p {
    font-size: 1.2rem;
    color: var(--charcoal);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HIGHLIGHTING & SCROLL BEHAVIOR ===== */
.legal-section.highlight {
    animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
    0% {
        background: transparent;
    }

    50% {
        background: rgba(201, 169, 97, 0.1);
    }

    100% {
        background: transparent;
    }
}

/* Scroll padding to account for fixed header */
.legal-section[id],
.terms-section[id],
.intro-section[id] {
    scroll-margin-top: 100px;
}

/* Target section highlighting - DISABLED (reverted to JS .highlight class)
   Keeping this commented out in case we want to re-enable it in the future
.legal-section:target,
.terms-section:target,
.intro-section:target {
    animation: highlightSection 2s ease-in-out;
}

.legal-section:target>h2,
.terms-section:target>h2,
.intro-section:target>h2 {
    color: var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}
*/

/* ===== SPECIAL CALLOUT BOXES ===== */
.legal-callout {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(201, 169, 97, 0.05));
    border: 2px solid var(--primary-gold);
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.legal-callout::before {
    content: '⚠️';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

.legal-callout h4 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.legal-callout p {
    margin: 0;
    color: var(--charcoal);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2.5rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc-sidebar {
        position: static;
        order: 2;
        margin-top: 2rem;
    }

    .legal-main {
        order: 1;
    }

    .legal-section h2,
    .terms-section h2,
    .intro-section h2 {
        font-size: 1.7rem;
    }

    .rights-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .cookie-table,
    .retention-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .retention-table th,
    .cookie-table td,
    .retention-table td {
        padding: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .legal-hero {
        padding: 4rem 0 2rem 0;
    }

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

    .legal-section,
    .terms-section,
    .intro-section {
        padding-bottom: 1.5rem;
    }

    .legal-section h2,
    .terms-section h2,
    .intro-section h2 {
        font-size: 1.5rem;
    }

    .toc-sidebar,
    .contact-method,
    .right-item {
        padding: 1rem;
    }

    .cookie-table,
    .retention-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .toc-sidebar,
    .legal-cta,
    .main-header,
    .main-footer {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .legal-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .legal-section h2 {
        page-break-after: avoid;
    }

    .cookie-table,
    .retention-table {
        page-break-inside: avoid;
    }

    .rights-grid {
        display: block;
    }

    .right-item {
        margin-bottom: 1rem;
        break-inside: avoid;
    }
}