/* ===== Legal Page Styles ===== */
.legal-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.legal-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.legal-badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Legal Container ===== */
.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Summary Card ===== */
.legal-summary {
    padding: 3rem 0;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.summary-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-title {
    font-size: 1.75rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.summary-description {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.0625rem;
    margin: 0;
}

/* ===== Legal Sections ===== */
.legal-sections {
    padding: 2rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Governance Grid ===== */
.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.governance-card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    border-left: 4px solid #3b82f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.governance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.25rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0;
}

.card-content {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1rem;
}

.card-content p {
    margin: 0;
}

/* ===== Principles Grid ===== */
.crawling-section,
.update-section,
.content-section {
    margin-bottom: 4rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 116, 139, 0.3);
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.principle-title {
    font-size: 1.25rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 1rem;
}

.principle-card p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== Update Grid ===== */
.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.update-card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.update-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 116, 139, 0.3);
}

.update-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.update-card-title {
    font-size: 1.25rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0;
}

.update-badge {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.update-card-content p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== Content Grid ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 116, 139, 0.3);
}

.content-card.warning-card {
    border-left: 4px solid #f87171;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.content-card-header {
    margin-bottom: 1.5rem;
}

.content-card-title {
    font-size: 1.25rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0;
}

.content-card-content p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

/* ===== Contact Section ===== */
.contact-section {
    margin: 4rem 0;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
}

.contact-title {
    font-size: 1.75rem;
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-description {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 1.0625rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.contact-description a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.2s ease;
}

.contact-description a:hover {
    color: #93c5fd;
    border-bottom-color: rgba(147, 197, 253, 0.6);
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    color: white;
}

.contact-button.secondary {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-button.secondary:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(100, 116, 139, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Legal Footnote ===== */
.legal-footnote {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
}

.legal-footnote p {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.legal-footnote p:last-child {
    margin-bottom: 0;
}

.legal-footnote strong {
    color: #cbd5e1;
    font-weight: 600;
}

.footnote {
    font-size: 0.8125rem;
    opacity: 0.8;
    font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .legal-hero {
        padding: 3rem 1rem;
    }
    
    .summary-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .governance-grid,
    .principles-grid,
    .update-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .governance-card,
    .principle-card,
    .update-card,
    .content-card {
        padding: 1.5rem;
    }
    
    .update-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-subtitle {
        font-size: 1rem;
    }
    
    .legal-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .legal-badge {
        width: fit-content;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
    }
    
    .summary-title {
        font-size: 1.5rem;
    }
    
    .summary-description {
        font-size: 1rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .legal-hero {
        background: white !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }
    
    .legal-title {
        color: #1e293b !important;
        background: none !important;
        -webkit-text-fill-color: #1e293b !important;
    }
    
    .legal-subtitle,
    .section-subtitle {
        color: #475569 !important;
    }
    
    .legal-badge,
    .update-badge {
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #475569 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .summary-card,
    .governance-card,
    .principle-card,
    .update-card,
    .content-card,
    .contact-card,
    .legal-footnote {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        break-inside: avoid;
    }
    
    .summary-title,
    .section-title,
    .card-title,
    .principle-title,
    .update-card-title,
    .content-card-title,
    .contact-title {
        color: #1e293b !important;
    }
    
    .summary-description,
    .card-content,
    .principle-card p,
    .update-card-content p,
    .content-card-content p,
    .contact-description {
        color: #475569 !important;
    }
    
    .content-card.warning-card {
        border-left: 4px solid #f87171 !important;
    }
    
    .contact-button {
        background: #3b82f6 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}