/* ===================================
   LEGAL PAGES STYLESHEET
   Privacy Policy & Terms of Service
   =================================== */

/* Legal Page Hero */
.legal-hero {
    background: linear-gradient(135deg, #0c1e34 0%, #1e3a8a 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.breadcrumb a {
    color: #4fc3f7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a:hover {
    color: #00FFF0;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Content */
.legal-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #4fc3f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
}

/* Legal Content Section */
.legal-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* Table of Contents */
.toc {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c1e34;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid #1e3a8a;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 12px;
}

.toc a {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 32px;
}

.toc a::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #4fc3f7;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toc a:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(79, 195, 247, 0.08) 100%);
    color: #1e3a8a;
    padding-left: 36px;
}

.toc a:hover::before {
    width: 8px;
    height: 8px;
    background: #1e3a8a;
}

/* Main Legal Content */
.legal-main {
    background: white;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.legal-main section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.legal-main section:last-child {
    margin-bottom: 0;
}

.legal-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0c1e34;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #1e3a8a;
}

.legal-main h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-main h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #374151;
    margin-top: 24px;
    margin-bottom: 12px;
}

.legal-main p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.legal-main ul,
.legal-main ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.legal-main li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 12px;
}

.legal-main li strong {
    color: #0c1e34;
}

.legal-main a {
    color: #1e3a8a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-main a:hover {
    color: #4fc3f7;
}

/* Tables */
.cookies-table,
.tier-table,
.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.cookies-table thead,
.tier-table thead,
.payment-table thead {
    background: linear-gradient(135deg, #1e3a8a 0%, #0c1e34 100%);
}

.cookies-table th,
.tier-table th,
.payment-table th {
    color: white;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    font-size: 1rem;
}

.cookies-table td,
.tier-table td,
.payment-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    color: #374151;
}

.cookies-table tbody tr:last-child td,
.tier-table tbody tr:last-child td,
.payment-table tbody tr:last-child td {
    border-bottom: none;
}

.cookies-table tbody tr:hover,
.tier-table tbody tr:hover,
.payment-table tbody tr:hover {
    background: rgba(79, 195, 247, 0.05);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.contact-method {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(79, 195, 247, 0.05) 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(79, 195, 247, 0.2);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: #4fc3f7;
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.15);
    transform: translateY(-4px);
}

.contact-method i {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 16px;
}

.contact-method h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0c1e34;
    margin-bottom: 8px;
}

.contact-method p {
    font-size: 1rem;
    color: #374151;
    margin: 0;
}

.contact-method a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    color: #4fc3f7;
}

/* Contact Box */
.contact-box {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    padding: 24px 32px;
    border-radius: 12px;
    border-left: 4px solid #1e3a8a;
    margin: 24px 0;
}

.contact-box p {
    margin: 8px 0;
    font-weight: 600;
}

.contact-box a {
    color: #1e3a8a;
    font-weight: 700;
}

/* Guarantee Highlight */
.guarantee-highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #0c1e34 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 32px 0;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
}

.guarantee-highlight i {
    font-size: 3rem;
    color: #00FF88;
    margin-bottom: 20px;
}

.guarantee-highlight h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.guarantee-highlight p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Phase Timeline */
.phase-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.phase {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.phase:hover {
    border-color: #4fc3f7;
    box-shadow: 0 8px 24px rgba(79, 195, 247, 0.15);
    transform: translateY(-4px);
}

.phase-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e3a8a 0%, #4fc3f7 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.phase h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c1e34;
    margin-bottom: 8px;
}

.phase p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

/* Legal Footer Note */
.legal-footer-note {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.08) 0%, rgba(0, 255, 136, 0.08) 100%);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #1e3a8a;
    margin-top: 56px;
}

.legal-footer-note h3 {
    color: #0c1e34;
    margin-top: 0;
}

/* Related Links Section */
.related-links {
    background: white;
    padding: 80px 0;
}

.related-links h3 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0c1e34;
    margin-bottom: 48px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.link-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-card:hover {
    border-color: #4fc3f7;
    box-shadow: 0 12px 40px rgba(79, 195, 247, 0.2);
    transform: translateY(-8px);
}

.link-card i {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.link-card:hover i {
    transform: scale(1.1);
}

.link-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0c1e34;
    margin-bottom: 12px;
}

.link-card p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .toc {
        position: static;
        max-height: none;
    }

    .legal-main {
        padding: 40px;
    }

    .legal-hero h1 {
        font-size: 2.5rem;
    }

    .phase-timeline {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .legal-hero {
        padding: 80px 0 40px;
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .legal-main {
        padding: 32px 24px;
    }

    .legal-main h2 {
        font-size: 1.65rem;
    }

    .legal-main h3 {
        font-size: 1.25rem;
    }

    .legal-main h4 {
        font-size: 1.05rem;
    }

    .legal-main p,
    .legal-main li {
        font-size: 0.98rem;
    }

    .toc {
        padding: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-method {
        padding: 24px;
    }

    .guarantee-highlight {
        padding: 32px 24px;
    }

    .phase-timeline {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-links {
        padding: 60px 0;
    }

    /* Make tables scrollable on mobile */
    .cookies-table,
    .tier-table,
    .payment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 1.75rem;
    }

    .legal-main {
        padding: 24px 16px;
    }

    .legal-main h2 {
        font-size: 1.5rem;
    }

    .toc {
        padding: 20px;
    }

    .toc h3 {
        font-size: 1.1rem;
    }

    .guarantee-highlight i {
        font-size: 2.5rem;
    }

    .guarantee-highlight h3 {
        font-size: 1.5rem;
    }

    .link-card {
        padding: 32px 24px;
    }

    .link-card i {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .related-links,
    .legal-hero {
        display: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .toc {
        display: none;
    }

    .legal-main {
        box-shadow: none;
        padding: 0;
    }

    .legal-main section {
        page-break-inside: avoid;
    }
}
