/* ============================================
   WYROH — Legal Pages (Privacy & Terms)
   ============================================ */

:root {
    --bg: #050508;
    --surface: #0d0d14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --text: #f0f0f5;
    --text-secondary: #d1d5db;
    --text-muted: #6b7280;
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* ---- Glow Orbs ---- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-purple);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--glow-cyan);
    bottom: -100px;
    left: -100px;
}

/* ---- Header ---- */
.legal-header {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    text-align: center;
}

.legal-header a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.legal-header a:hover {
    transform: scale(1.05);
}

.legal-header img {
    height: 50px;
    filter: drop-shadow(0 0 20px var(--glow-purple));
}

/* ---- Main Content ---- */
.legal-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    width: 100%;
}

/* ---- Title Section ---- */
.legal-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.legal-title h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--purple-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-title .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

.legal-title p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Card ---- */
.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 3rem);
    backdrop-filter: blur(10px);
}

.legal-card .update-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---- Sections ---- */
.legal-section {
    margin-bottom: 2rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--purple-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-section h2 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple-light);
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.legal-section ul li {
    margin-bottom: 0.4rem;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--purple);
}

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

.legal-section a:hover {
    color: var(--cyan);
}

/* ---- Back Link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--purple-light);
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--purple-light);
}

.footer-dot {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 0.5rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .legal-card {
        border-radius: 16px;
    }

    .legal-header img {
        height: 40px;
    }

    .orb-1 { width: 250px; height: 250px; }
    .orb-2 { width: 200px; height: 200px; }
}
