@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ============================================================
   PeekPosting — refund_policy.css
   Self-contained. Light mode default · Dark mode via [data-theme="dark"]
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --bg-page:               #f1f5f9;
    --bg-body:               radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 100%);

    --text-primary:          #0f172a;
    --text-muted:            #64748b;

    --nav-bg:                rgba(248,250,252,0.85);
    --nav-border:            rgba(79, 70, 229, 0.08);
    --nav-logo:              #0f172a;
    --nav-link:              #475569;
    --nav-link-hover:        #4f46e5;
    --nav-cta-bg:            linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);

    --section-title:         #0f172a;

    --card-bg:               rgba(255, 255, 255, 0.65);
    --card-border-light:     #ffffff;
    --card-border-dark:      rgba(15, 23, 42, 0.05);
    --card-shadow:           0 20px 40px rgba(15, 23, 42, 0.04),
                             0 1px 3px rgba(0,0,0,0.02),
                             inset 0 0 20px rgba(255,255,255,0.4);
    --card-icon-color:       #4f46e5;
    --card-title:            #0f172a;
    --card-text:             #64748b;

    --footer-bg:             rgba(255,255,255,0.5);
    --footer-border:         rgba(79, 70, 229, 0.08);
    --footer-text:           #64748b;
    --footer-link:           #4f46e5;

    --radius-card: 24px;
}

[data-theme="dark"] {
    --bg-page:               #010206;
    --bg-body:               radial-gradient(circle at 50% 0%, #051226 0%, #010308 100%);

    --text-primary:          #ffffff;
    --text-muted:            #8ea1bf;

    --nav-bg:                rgba(1,3,8,0.85);
    --nav-border:            rgba(0,242,255,0.08);
    --nav-logo:              #ffffff;
    --nav-link:              #8ea1bf;
    --nav-link-hover:        #00f2ff;
    --nav-cta-bg:            linear-gradient(90deg, rgba(0,242,255,0.75) 0%, rgba(189,75,243,0.5) 100%);

    --section-title:         #ffffff;

    --card-bg:               linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    --card-border-light:     rgba(255,255,255,0.15);
    --card-border-dark:      rgba(0,242,255,0.4);
    --card-shadow:           0 20px 40px rgba(0,0,0,0.6), inset 0 0 15px rgba(255,255,255,0.02);
    --card-icon-color:       #00f2ff;
    --card-title:            #ffffff;
    --card-text:             #8ea1bf;

    --footer-bg:             rgba(255,255,255,0.02);
    --footer-border:         rgba(0,242,255,0.08);
    --footer-text:           #8ea1bf;
    --footer-link:           #00f2ff;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ── GRAIN OVERLAY ─────────────────────────────────────────── */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    transition: opacity 0.4s ease;
}

[data-theme="dark"] .grain-overlay {
    opacity: 0.04;
}

/* ── CONTENT ───────────────────────────────────────────────── */
.content {
    position: relative;
    z-index: 10;
}

/* ── NAV ───────────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 32px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nav-logo);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--nav-cta-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-icon svg {
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--nav-logo);
    transition: color 0.4s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--nav-link);
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-links a:hover {
    color: var(--nav-link-hover);
}

@media (max-width: 768px) {
    nav { padding: 14px 16px; }
}

/* ── LEGAL PAGE ────────────────────────────────────────────── */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.legal-header {
    margin-bottom: 56px;
}

.legal-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--section-title);
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.legal-body {
    background: var(--card-bg);
    border-top: 1.5px solid var(--card-border-light);
    border-left: 1.5px solid var(--card-border-light);
    border-right: 1px solid var(--card-border-dark);
    border-bottom: 2px solid var(--card-border-dark);
    border-radius: var(--radius-card);
    padding: 48px;
    backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.legal-section {
    margin-bottom: 36px;
}

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

.legal-section h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--card-title);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
    transition: color 0.4s ease;
}

.legal-section p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--card-text);
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

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

.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.legal-section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--card-text);
    padding-left: 20px;
    position: relative;
    transition: color 0.4s ease;
}

.legal-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--card-icon-color);
    transition: background 0.4s ease;
}

.legal-divider {
    border: none;
    border-top: 1px solid var(--card-border-dark);
    margin: 36px 0;
    transition: border-color 0.4s ease;
}

.legal-contact {
    font-size: 15px;
    color: var(--card-text);
    line-height: 1.75;
}

.legal-contact a {
    color: var(--footer-link);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.25s ease;
}

.legal-contact a:hover {
    opacity: 0.75;
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer,
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 40px 32px;
    transition: background 0.4s ease, border-color 0.4s ease;
}

footer p, .footer p {
    color: var(--footer-text);
    font-size: 14px;
    transition: color 0.4s ease;
}

footer a, .footer a {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.25s ease;
}

footer a:hover, .footer a:hover {
    opacity: 0.75;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .legal-page {
        padding: 56px 16px 72px;
    }

    .legal-body {
        padding: 28px 22px;
    }

    .legal-section h2 {
        font-size: 17px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }

    footer { padding: 28px 16px; }
}