/* Shared Legal Document Styles */

/* Hero Section - Center alignment for legal pages */
.hero-section {
    text-align: center;
    padding: 4rem 0 2rem;
}

.hero-section .hero-title {
    margin: 0 auto;
}

.hero-section .hero-subtitle {
    margin: 1rem auto 0;
}

/* Container */
.privacy-policy-container,
.section {
    padding: 4rem 0;
}

/* Legal Terms Cards */
.terms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.terms-card {
    position: relative;
    background: var(--card-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 12px);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary, #fff);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.terms-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #6366f1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.terms-card .card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--secondary, #8b5cf6));
    border-radius: 12px;
    font-size: 1.5rem;
    color: white;
}

.terms-card h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.terms-card p {
    margin: 0;
    color: var(--text-secondary, rgba(255, 255, 255, 0.7));
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.terms-card .card-arrow {
    align-self: flex-end;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    color: var(--primary, #6366f1);
    transition: all 0.3s ease;
}

.terms-card:hover .card-arrow {
    background: var(--primary, #6366f1);
    color: white;
    transform: translateX(4px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Privacy Header */
.privacy-header {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.terms-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.terms-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-breadcrumb a:hover {
    color: var(--secondary);
}

.terms-breadcrumb .separator {
    color: rgba(248, 250, 252, 0.5);
}

.terms-breadcrumb .current {
    color: rgba(248, 250, 252, 0.7);
}

.privacy-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
}

.last-updated {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
}

/* Privacy Content */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Table of Contents */
.table-of-contents {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.table-of-contents h2 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light);
}

.table-of-contents ol {
    margin: 0;
    padding-left: 1.5rem;
}

.table-of-contents li {
    margin: 0.75rem 0;
}

.table-of-contents a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.table-of-contents a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Section Content */
.section-content {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* Offset for fixed header */
}

.section-content h2 {
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
}

.section-content h3 {
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light);
}

.section-content h4 {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.section-content p {
    margin: 1rem 0;
    color: rgba(248, 250, 252, 0.8);
}

.section-content strong {
    color: var(--light);
    font-weight: 600;
}

.section-content ul,
.section-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: rgba(248, 250, 252, 0.8);
}

.section-content li {
    margin: 0.5rem 0;
}

.section-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-content a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }

    .table-of-contents {
        padding: 1.5rem;
    }

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

    .section-content h3 {
        font-size: 1.25rem;
    }

    .section-content h4 {
        font-size: 1.1rem;
    }
}
