:root {
    --primary: #5A6B2F;
    --secondary: #4A5D23;
    --accent: #D4A835;
    --background: #0A0E0A;
    --text: #E8F0E8;
    --text-light: #B8C8B8;
    --white: #FFFFFF;
    --border: #2A3A2A;
    --glow: rgba(212, 168, 53, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.bg-animation::before,
.bg-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-animation::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-animation::after {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    right: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, 50px) rotate(120deg); }
    66% { transform: translate(-50px, 50px) rotate(240deg); }
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

.logo img {
    height: 48px;
    filter: drop-shadow(0 0 10px var(--glow));
}

.logo-text {
    font-size: 1.625rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px var(--glow);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
    left: -2rem;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    min-height: 100vh;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Legal Page */
.legal-page {
    padding-top: 10rem;
    padding-bottom: 6rem;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    min-height: 100vh;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.legal-content {
    width: calc(100% - 6rem);
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 0;
    margin-bottom: 0;
    padding: 4rem;
    background: rgba(42, 58, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.legal-content-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.legal-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.legal-back-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--glow);
    transform: translateX(-5px);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px var(--glow);
}

.legal-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--glow);
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section p {
    color: var(--text);
    line-height: 2;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
}

.policy-notice {
    margin-bottom: 3rem;
}

.policy-notice p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.policy-notice p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .policy-notice p {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .policy-notice p {
        font-size: 1.25rem;
    }
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--glow);
}

.legal-section:first-of-type .subtitle {
    margin-top: 0;
}

.policy-links {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.policy-links p {
    margin-bottom: 0.5rem;
}

.policy-links a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.policy-links a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--glow);
    text-decoration: underline;
}

.legal-section ul {
    color: var(--text);
    line-height: 2;
    margin-left: 2rem;
    margin-bottom: 1.75rem;
}

.legal-section ol {
    color: var(--text);
    line-height: 2;
    margin-left: 2rem;
    margin-bottom: 1.75rem;
    padding-left: 0;
    list-style-position: outside;
}

.legal-section li {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--glow);
}

.legal-section strong {
    color: var(--accent);
    font-weight: 700;
}

/* Sitemap specific styles */
.sitemap-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.sitemap-list li {
    margin-bottom: 0;
    padding: 1rem 1.5rem;
    background: rgba(26, 37, 26, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sitemap-list li:hover {
    background: rgba(26, 37, 26, 0.6);
    border-color: var(--accent);
    transform: translateX(5px);
}

.sitemap-list li::before {
    content: '→';
    position: absolute;
    left: 0.75rem;
    color: var(--accent);
    font-weight: bold;
    opacity: 0.7;
}

.sitemap-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    display: block;
    padding-left: 1.5rem;
}

.sitemap-list a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(212, 168, 53, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(212, 168, 53, 0.6);
}

/* Footer */
footer {
    background: rgba(10, 14, 10, 0.95);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: 6rem 0 3rem;
    border-top: 2px solid var(--border);
    position: relative;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 6rem;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-brand a {
    display: block;
    transition: transform 0.3s ease;
}

.footer-brand a:hover {
    transform: scale(1.05);
}

.footer-brand img {
    height: 120px;
    filter: drop-shadow(0 0 20px var(--glow));
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-section h4 {
    font-size: 1.1875rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow);
}

.footer-section a {
    display: block;
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(10px);
    text-shadow: 0 0 10px var(--glow);
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.0625rem;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: 2.5rem;
}

.footer-legal a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow);
}

@media (max-width: 1024px) {
    .legal-content {
        padding: 3rem 2rem;
    }

    .legal-header h1 {
        font-size: 2.5rem;
    }

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

    .legal-section p {
        font-size: 1.125rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .legal-toc {
        position: relative;
        top: 0;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .legal-content {
        width: calc(100% - 6rem);
        margin-left: 3rem;
        margin-right: 3rem;
        padding: 2rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

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