/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-estimate {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: none;
}

.btn-estimate::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    transition: 0.3s;
}

/* Legal Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    border-bottom: 1px solid #333;
}

.legal-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.last-updated,
.effective-date {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #333;
    color: #00d4ff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Legal Navigation */
.legal-nav-section {
    background: #111111;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
}

.legal-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 30px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-nav-link:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.legal-nav-link.active {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-color: #00d4ff;
    color: #ffffff;
}

/* Table of Contents */
.toc-section {
    background: #0a0a0a;
    padding: 3rem 0;
}

.toc-container {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #333;
}

.toc-title {
    color: #00d4ff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.toc-link {
    display: block;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: #cccccc;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toc-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateX(5px);
}

/* Legal Content */
.legal-content {
    background: #0a0a0a;
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    background: #1a1a1a;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    scroll-margin-top: 120px;
}

.legal-section h2 {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

.legal-section h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
}

.legal-section h4 {
    color: #00d4ff;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
}

.legal-section p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-section ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #cccccc;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section strong {
    color: #ffffff;
    font-weight: 700;
}

.legal-section a {
    color: #00d4ff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #ffffff;
}

/* Contact Info in Legal Pages */
.contact-info-legal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background: #0a0a0a;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #333;
}

.contact-method h4 {
    color: #00d4ff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.contact-method p {
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
}

.footer-description {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #00d4ff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.footer-column h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d4ff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
}

.contact-item i {
    color: #00d4ff;
    width: 20px;
}

.footer-divider {
    border: none;
    height: 1px;
    background: #333;
    margin: 2rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        height: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .legal-title {
        font-size: 2.5rem;
    }

    .legal-subtitle {
        font-size: 1rem;
    }

    .legal-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .legal-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .legal-nav-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 2rem 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.7rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .contact-info-legal {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 2rem;
    }

    .legal-hero {
        padding: 6rem 0 3rem;
    }

    .toc-container,
    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section ul {
        margin-left: 1rem;
    }

    .contact-method {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .legal-nav-section,
    .footer,
    .back-to-top {
        display: none;
    }

    .legal-hero {
        margin-top: 0;
        padding: 2rem 0;
    }

    .legal-section {
        background: white;
        color: black;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .legal-section h2,
    .legal-section h3,
    .legal-section h4 {
        color: black;
    }

    .legal-section p,
    .legal-section li {
        color: black;
    }

    .toc-container {
        background: white;
        border: 1px solid #ccc;
    }

    .toc-link {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .legal-section {
        border: 2px solid #00d4ff;
    }

    .toc-link:hover,
    .legal-nav-link:hover {
        background: #00d4ff;
        color: #000000;
    }
}

/* Focus Styles for Accessibility */
.toc-link:focus,
.legal-nav-link:focus,
.nav-link:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: #00d4ff;
    color: #0a0a0a;
}

::-moz-selection {
    background: #00d4ff;
    color: #0a0a0a;
}