/* ========================================
   Legal Pages - Premium Dark Theme
   Shared styles for Privacy Policy & Terms of Service
   ======================================== */

/* === CSS Variables === */
:root {
    --color-bg: #0a0f0a;
    --color-bg-card: rgba(20, 30, 20, 0.85);
    --color-accent: #5da85d;
    --color-accent-light: #7bc47b;
    --color-gold: #d4a853;
    --color-text: #f0f0f0;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    --color-border: rgba(93, 168, 93, 0.2);
    --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
    --font-body: 'Satoshi', system-ui, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Base Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg) 0%, #0d1a0d 50%, #0a0f0a 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(93, 168, 93, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(93, 168, 93, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* === Navigation === */
.nav-header {
    max-width: 900px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-light);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(93, 168, 93, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(93, 168, 93, 0.2);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(93, 168, 93, 0.2);
}

.back-arrow {
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* === Main Container === */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg-card);
    padding: 50px 60px;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 50px -10px rgba(93, 168, 93, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Top gradient line */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-accent),
            var(--color-gold),
            var(--color-accent-light),
            transparent);
    background-size: 200% 100%;
    animation: shimmerBorder 4s ease-in-out infinite;
}

@keyframes shimmerBorder {

    0%,
    100% {
        background-position: -200% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

/* Corner glow */
.container::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(93, 168, 93, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* === Header === */
header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.page-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(93, 168, 93, 0.4));
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.effective-date {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(93, 168, 93, 0.2), rgba(93, 168, 93, 0.1));
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-accent-light);
    font-weight: 500;
    font-size: 0.9rem;
}

/* === Section Headings === */
h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.3rem;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-top: 25px;
    margin-bottom: 12px;
}

/* === Content === */
p {
    color: var(--color-text-muted);
    margin-bottom: 18px;
    font-size: 1rem;
}

section>p:first-of-type {
    font-size: 1.05rem;
}

/* === Lists === */
ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    padding-left: 5px;
    position: relative;
}

li::marker {
    color: var(--color-accent);
}

li strong {
    color: #ffffff;
}

/* === Highlight Box === */
.highlight-box {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
    border-left: 4px solid var(--color-gold);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 16px 16px 0;
    position: relative;
}

.highlight-box strong {
    color: var(--color-gold);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-gold), var(--color-accent));
    border-radius: 4px 0 0 4px;
}

/* === Contact Box === */
.contact-box {
    background: linear-gradient(135deg, rgba(93, 168, 93, 0.15), rgba(93, 168, 93, 0.05));
    border: 1px solid var(--color-border);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(93, 168, 93, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-box h3 {
    color: var(--color-accent-light);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact-box p {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.contact-item span:first-child {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 30px;
}

.contact-item a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(93, 168, 93, 0.5);
}

/* === Footer === */
footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
    color: var(--color-text-subtle);
}

footer a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s var(--ease-out-expo);
}

section {
    animation: fadeInUp 0.6s var(--ease-out-expo);
    animation-fill-mode: both;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.15s;
}

section:nth-child(3) {
    animation-delay: 0.2s;
}

section:nth-child(4) {
    animation-delay: 0.25s;
}

section:nth-child(5) {
    animation-delay: 0.3s;
}

section:nth-child(6) {
    animation-delay: 0.35s;
}

section:nth-child(7) {
    animation-delay: 0.4s;
}

section:nth-child(8) {
    animation-delay: 0.45s;
}

/* === Responsive === */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 30px 25px;
        border-radius: 20px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .page-icon {
        font-size: 2.5rem;
    }

    .contact-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }

    .back-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .effective-date {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}