/* Shared Legal Pages Styles (About, Contact, Terms, Privacy) */

/* Theme toggle button for legal pages */
.c-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white !important;
    color: #1e3a8a !important;
    border: 2px solid #1e3a8a !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-theme-toggle:hover {
    background: #1e3a8a !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.c-theme-toggle::before {
    content: '☀️';
    font-size: 1.1rem;
}

[data-theme="dark"] .c-theme-toggle::before,
body[data-theme="dark"] .c-theme-toggle::before {
    content: '🌙';
}

@media (max-width: 768px) {
    .c-theme-toggle {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 1.5rem auto;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Legal page container */
.legal-page,
.about-page,
.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.7;
}

.legal-page h1,
.about-page h1,
.contact-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-page h2,
.about-page h2,
.contact-page h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.legal-page h3,
.about-page h3,
.contact-page h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-page p,
.about-page p,
.contact-page p {
    margin-bottom: 1rem;
}

.legal-page ul,
.legal-page ol,
.about-page ul,
.contact-page ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-page li,
.about-page li,
.contact-page li {
    margin-bottom: 0.5rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #1e3a8a, #0c4061);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section__subtitle-lg {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.hero-section__subtitle {
    font-size: 1rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Info boxes */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    color: #000;
}

[data-theme="dark"] .info-box,
body[data-theme="dark"] .info-box {
    background: #1a2332;
    border-left: 4px solid #2196f3;
    color: #fff;
}

.info-box h4 {
    margin-top: 0;
    color: #1565c0;
}

[data-theme="dark"] .info-box h4,
body[data-theme="dark"] .info-box h4 {
    color: #93c5fd;
}

/* Highlight/mission box */
.mission-box,
.highlight-box {
    background: linear-gradient(135deg, #1e3a8a, #0c4061);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

/* Contact boxes */
.contact-box {
    background: var(--bg-secondary, #f4f8fc);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 6px solid #1e3a8a;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: #1e3a8a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background: #0c4061;
}

/* Last updated text */
.last-updated {
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .legal-page,
    .about-page,
    .contact-page {
        padding: 1rem;
    }
    
    .legal-page h1,
    .about-page h1,
    .contact-page h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
}

/* Utility classes for legal pages */
.contact-icon {
    font-size: 3rem;
}

.u-list-tight {
    margin: 0;
    padding-left: 1.5rem;
}

.u-list-tight-bottom {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.u-text-note {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.8;
}

.u-spacing-top {
    margin-top: 3rem;
}

.contact-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* Accept/Reject button styles (privacy page) */
.reject-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.reject-btn:hover {
    background-color: white !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.accept-btn {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: white !important;
}

.accept-btn:hover {
    background-color: white !important;
    border-color: #2e7d32 !important;
    color: #2e7d32 !important;
}

/* Button group centering */
.u-button-group-center {
    justify-content: center;
    margin-top: 1.5rem;
}

/* Privacy page buttons */
.u-btn-wide {
    min-width: 200px;
}

/* Terms page signature */
.u-signature {
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
}
