.legal-page {
    min-height: 100vh;
    background-color: #f9fafb;
}

.page-hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    font-weight: 400;
}

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

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

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .table-of-contents {
        position: static !important;
        margin-bottom: 2rem;
    }
}

.table-of-contents {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
    border: 2px solid #e5e7eb;
}

.table-of-contents h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.table-of-contents a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.table-of-contents a:hover {
    color: #16a34a;
    background: #f3f4f6;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 2rem;
}

.section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem;
}

.legal-section p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.legal-section a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #15803d;
    text-decoration: underline;
}

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

.info-item {
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.info-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    margin-top: 1.5rem;
    color: #991b1b;
    font-weight: 500;
}

.alert-box svg {
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 0.125rem;
}

.highlight-box {
    padding: 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.highlight-box p {
    margin: 0;
    color: #065f46;
    font-weight: 500;
}

.highlight-box a {
    color: #16a34a;
    font-weight: 700;
}

.contact-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.contact-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: white;
}

.contact-section p {
    margin: 0 0 2rem;
    opacity: 0.9;
    color: white;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-method svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .page-hero {
        padding: 3rem 0 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-method {
        justify-content: center;
    }

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