/* Legal Page Styles - About Page Inspired Layout */

/* Body and Canvas Background */
body {
    margin: 0;
    padding: 0;
    background: #0a0f1a;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Page Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-button a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(45, 86%, 62%);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid hsl(45, 86%, 62%);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
}

.back-button a:hover {
    background: hsl(45, 86%, 62%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.back-button svg {
    width: 18px;
    height: 18px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    border: 3px solid hsl(217, 70%, 55%);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.page-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    color: hsl(45, 86%, 62%);
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.effective-date {
    font-size: 16px;
    color: hsl(217, 50%, 75%);
    margin: 0;
    opacity: 0.9;
}

/* Legal Content Container */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Legal Section Styling - About Page Style */
.legal-section {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    border: 2px solid hsl(217, 70%, 55%);
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.section-header {
    background: linear-gradient(135deg, hsl(217, 70%, 55%), hsl(217, 50%, 75%));
    padding: 30px 40px;
    border-bottom: 3px solid hsl(45, 86%, 62%);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(45, 86%, 62%), hsl(45, 86%, 72%), hsl(45, 86%, 62%));
}

.section-header h2 {
    font-size: clamp(24px, 4vw, 28px);
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.section-content {
    padding: 40px;
    line-height: 1.7;
}

/* Subsection Styling */
.subsection {
    margin: 35px 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}

.subsection:first-child {
    margin-top: 0;
}

.subsection h3 {
    font-size: 22px;
    color: hsl(45, 86%, 62%);
    margin: 0 0 20px 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

/* Detail sections within subsections */
.detail-section {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid hsl(217, 70%, 55%);
}

.detail-section h4 {
    font-size: 18px;
    color: hsl(217, 50%, 75%);
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* Warning categories styling */
.warning-categories {
    margin: 25px 0;
}

.warning-item {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 4px solid hsl(45, 86%, 62%);
}

.warning-item h4 {
    font-size: 18px;
    color: hsl(45, 86%, 62%);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.intro {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-weight: 500;
}

.agreement {
    font-size: 16px;
    color: hsl(45, 86%, 62%);
    margin: 25px 0;
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid hsl(45, 86%, 62%);
    border-radius: 8px;
    font-weight: 600;
}

/* Terms Sections */
.terms-section {
    margin: 35px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h3 {
    font-size: 20px;
    color: hsl(45, 86%, 62%);
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.terms-section h4 {
    font-size: 18px;
    color: hsl(217, 50%, 75%);
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.terms-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0;
    line-height: 1.6;
}

/* Subsections */
.subsection {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 3px solid hsl(217, 70%, 55%);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Lists */
.service-list,
.content-warnings,
.liability-list,
.usage-list,
.tools-list,
.rights-list {
    margin: 20px 0;
    padding-left: 20px;
}

.service-list li,
.content-warnings li,
.liability-list li,
.usage-list li,
.tools-list li,
.rights-list li {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    line-height: 1.5;
}

.service-list li::marker,
.liability-list li::marker,
.usage-list li::marker,
.tools-list li::marker,
.rights-list li::marker {
    color: hsl(45, 86%, 62%);
}

.content-warnings li::marker {
    color: hsl(217, 50%, 75%);
}

/* Contact Information */
.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid hsl(217, 70%, 55%);
    margin: 20px 0;
}

.contact-info p {
    margin: 8px 0;
}

.contact-info a {
    color: hsl(45, 86%, 62%);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Links */
a {
    color: hsl(45, 86%, 62%);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Services Page Specific Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid hsl(217, 70%, 55%);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: hsl(45, 86%, 62%);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(30, 64, 175, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    color: hsl(217, 70%, 55%);
}

.service-header h3 {
    font-size: 20px;
    color: hsl(45, 86%, 62%);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 15px 0 20px 0;
    line-height: 1.6;
}

.addon-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.addon-service {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(30, 64, 175, 0.2);
    transition: all 0.3s ease;
}

.addon-service:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: hsl(217, 70%, 55%);
}

.addon-icon {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: rgba(30, 64, 175, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.addon-icon svg {
    color: hsl(217, 70%, 55%);
}

.addon-service h4 {
    font-size: 18px;
    color: hsl(45, 86%, 62%);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.addon-service p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .addon-service {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Footer */
.page-footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    border: 1px solid hsl(217, 70%, 55%);
}

.page-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: hsl(45, 86%, 62%);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.footer-nav a:hover {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border-color: hsl(45, 86%, 62%);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .footer-nav {
        gap: 15px;
    }
    
    .footer-nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .back-button {
        position: static;
        margin-bottom: 20px;
    }
    
    .back-button a {
        justify-content: center;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        display: flex;
    }
    
    .page-header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .legal-text {
        padding: 20px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .terms-section {
        margin: 25px 0;
    }
    
    .subsection {
        padding: 12px 15px;
        margin: 15px 0;
    }
    
    .service-list,
    .content-warnings,
    .liability-list,
    .usage-list,
    .tools-list,
    .rights-list {
        padding-left: 15px;
    }
    
    .legal-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .terms-section h3 {
        font-size: 18px;
    }
    
    .intro {
        font-size: 16px;
    }
    
    .terms-section p {
        font-size: 15px;
    }
}