/* Legal Pages Styles */

.legal-page {
    padding: 40px 0 60px;
    background: #fff;
}

.legal-page__header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #1a73e8;
}

.legal-page__title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.legal-page__updated {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.legal-page__content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

/* Legal Sections */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.legal-section h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    margin-top: 25px;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-section ul,
.legal-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-section li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-section li strong {
    color: #1a1a1a;
    font-weight: 600;
}

.legal-section a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Intro Paragraph */
.legal-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    padding: 25px;
    background: #f8f9fa;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    margin-bottom: 30px;
}

/* Contact Section within Legal Pages */
.legal-section--contact {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.legal-section--contact h2 {
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.legal-section--contact p {
    color: rgba(255, 255, 255, 0.95);
}

.legal-section--contact a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}

.legal-section--contact a:hover {
    color: #e3f2fd;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.contact-info p {
    margin: 8px 0;
}

.contact-info strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

/* Highlighted Boxes */
.legal-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-highlight p {
    margin: 0;
    color: #856404;
}

/* Important Notice Box */
.legal-notice {
    background: #e3f2fd;
    border-left: 4px solid #1a73e8;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-notice p {
    margin: 0;
    color: #0d47a1;
    font-weight: 500;
}

/* Warning Box */
.legal-warning {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.legal-warning p {
    margin: 0;
    color: #c62828;
    font-weight: 500;
}

/* Table Styles for Legal Pages */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.legal-table th {
    background: #1a73e8;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover {
    background: #f5f5f5;
}

/* Definition List */
.legal-definitions dt {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.legal-definitions dd {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a73e8;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

/* Breadcrumbs Enhancement */
.breadcrumbs {
    padding: 15px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 30px 0 40px;
    }

    .legal-page__title {
        font-size: 2rem;
    }

    .legal-page__header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-page__content {
        padding: 0 15px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }

    .legal-intro {
        font-size: 1.05rem;
        padding: 20px;
    }

    .legal-section--contact {
        padding: 20px;
    }

    .contact-info {
        padding: 15px;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .legal-page__title {
        font-size: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.35rem;
    }

    .legal-intro {
        font-size: 1rem;
        padding: 15px;
    }

    .legal-table {
        font-size: 0.9rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .breadcrumbs,
    .back-to-top {
        display: none;
    }

    .legal-page {
        padding: 0;
    }

    .legal-page__content {
        max-width: 100%;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .legal-section a {
        color: #000;
        text-decoration: underline;
    }
}
