/* Legal Pages Specific Styles */

/* Legal Hero Section */
.legal-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

.legal-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.legal-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.legal-hero .geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.legal-hero .shape {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
    opacity: 0.1;
    border-radius: 20px;
}

.legal-hero .shape-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 10%;
    animation: floatShape 8s ease-in-out infinite;
}

.legal-hero .shape-2 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 15%;
    animation: floatShape 6s ease-in-out infinite reverse;
}

.legal-hero .shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 25%;
    animation: floatShape 10s ease-in-out infinite;
}

.legal-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-hero .hero-badge {
    display: inline-block;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
}

.legal-hero .hero-title {
    margin-bottom: 2rem;
}

.legal-hero .title-line {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-dark);
}

.legal-hero .title-line:first-child {
    font-size: 3rem;
}

.legal-hero .title-line.accent {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 0.5rem;
}

.legal-hero .hero-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.last-updated {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-block;
    border: 1px solid var(--neutral-200);
}

/* Legal Content */
.legal-content {
    background: white;
    padding: 4rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Table of Contents */
.toc {
    position: sticky;
    top: 120px;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
}

.toc h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 0.75rem;
}

.toc a {
    color: var(--neutral-600);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.toc a:hover {
    color: var(--accent-gold);
    border-left-color: var(--accent-gold);
    transform: translateX(5px);
}

/* Main Content */
.main-content {
    max-width: none;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-gold);
}

.content-section h3 {
    color: var(--primary-dark);
    margin: 2rem 0 1rem 0;
}

.content-section h4 {
    color: var(--primary-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-section ul {
    color: var(--neutral-600);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Sharing Grid */
.sharing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.sharing-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.sharing-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sharing-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.sharing-item h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.sharing-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.rights-card {
    background: var(--accent-gold);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.rights-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rights-card h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.rights-card p {
    color: white;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Contact Details */
.contact-details {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Prohibited Grid */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.prohibited-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: all 0.3s ease;
}

.prohibited-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.prohibited-item i {
    font-size: 2rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.prohibited-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.prohibited-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Payment Terms */
.payment-terms,
.account-requirements {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    margin: 2rem 0;
}

/* Values Grid (Code of Conduct) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* Behavior Categories */
.behavior-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.behavior-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
}

.behavior-category h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Unacceptable Grid */
.unacceptable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.unacceptable-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.unacceptable-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.unacceptable-item i {
    font-size: 2rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.unacceptable-item h4 {
    color: var(--error);
    margin-bottom: 0.75rem;
}

.unacceptable-item p {
    color: #7f1d1d;
    font-size: 0.9rem;
    margin: 0;
}

/* Reporting Process */
.reporting-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.report-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.report-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.report-step h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.report-step p {
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Info */
.contact-info {
    background: var(--primary-dark);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.contact-info h3 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.contact-info p {
    color: white;
    margin-bottom: 0.5rem;
}

/* Legal Pages Responsive Styles */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .toc {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
        padding: 1.5rem;
    }

    .info-grid,
    .sharing-grid,
    .rights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 6rem 0 4rem;
    }

    .legal-content {
        padding: 3rem 0;
    }

    .content-section {
        padding: 1.5rem 0;
    }

    .info-card,
    .sharing-item,
    .rights-card {
        padding: 1.5rem;
        text-align: center;
    }

    .sharing-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .toc {
        padding: 1rem;
    }

    .toc ul {
        columns: 1;
    }
}

@media (max-width: 480px) {
    .legal-hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .contact-details {
        text-align: center;
    }
}
