/* ------------------------------------------------------------------
   Striv dev-app design language (mirrors striv_flutter striv_theme.dart):
   pure-black canvas, single signal-green CTA (#7BCF47), Unbounded display
   + Urbanist UI, sharp 2px corners (12px for cards/modals), hairline
   dividers at white-20%. Dark-first, always.

   Shared by returns.html and warranty.html. terms.html and privacy.html
   carry the same design language inline; keep the two in sync.
------------------------------------------------------------------ */

/* Urbanist draws U+2122 as full-size cap-height "TM" instead of a
   superscript glyph, so "Striv™" renders as "StrivTM". This face covers
   that one codepoint only and is listed ahead of Urbanist, so ™ comes
   from a system font while every other glyph still comes from Urbanist.
   If no local font matches, the face is skipped and ™ falls through to
   Urbanist as before. */
@font-face {
    font-family: 'Striv TM';
    src: local('Helvetica Neue'), local('Arial'), local('Segoe UI'),
         local('DejaVu Sans'), local('Liberation Sans');
    unicode-range: U+2122;
}

:root {
    color-scheme: dark;
    --bg: #000000;
    --surface: #0d0d0d;          /* cards / sections / sidebar */
    --accent: #7bcf47;           /* the one signal green */
    --accent-ink: #0a0a0a;       /* near-black text on green */
    --accent-soft: rgba(123, 207, 71, 0.12);
    --text: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);
    --divider: rgba(255, 255, 255, 0.2);
    --r-xs: 2px;
    --r-md: 12px;
    --font-display: 'Unbounded', sans-serif;
    --font-ui: 'Striv TM', 'Urbanist', sans-serif;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 20px;
    font-weight: 400;
    position: relative;
}

/* Soft green ambient glow behind the page — echoes the app login screen */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 70vh;
    background: radial-gradient(ellipse at center,
                rgba(123, 207, 71, 0.16) 0%,
                rgba(123, 207, 71, 0.04) 38%,
                transparent 68%);
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
}

header {
    text-align: center;
    margin-bottom: 44px;
    padding: 44px 20px 36px;
    border-bottom: 0.5px solid var(--divider);
}

.logo {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 18px;
}

.last-updated {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    margin: 28px 0 20px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid var(--divider);
    color: var(--white);
}

h3 {
    font-size: 1.25rem;
    margin: 24px 0 14px;
    color: var(--white);
    font-weight: 500;
}

p, li {
    margin-bottom: 14px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-muted);
}

ul, ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

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

.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

nav {
    flex: 1;
    min-width: 240px;
    background-color: var(--surface);
    padding: 22px;
    border-radius: var(--r-md);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 0.5px solid var(--divider);
}

nav strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 16px;
}

nav a {
    display: block;
    padding: 11px 14px;
    margin-bottom: 6px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--r-xs);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
}

nav a:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 1;
    text-decoration: none;
}

main {
    flex: 3;
    min-width: 300px;
}

section {
    margin-bottom: 28px;
    padding: 30px;
    background-color: var(--surface);
    border-radius: var(--r-md);
    border: 0.5px solid var(--divider);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease;
    scroll-margin-top: 20px;
}

section:hover {
    border-color: rgba(123, 207, 71, 0.45);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.85;
}

/* Active state on scroll-to section */
section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { border-color: var(--accent); }
    100% { border-color: var(--divider); }
}

.notice {
    margin: 18px 0 20px;
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    border-radius: var(--r-xs);
    background: var(--accent-soft);
    color: var(--text-muted);
}

.address {
    font-style: normal;
    color: var(--text-muted);
}

footer {
    text-align: center;
    margin-top: 48px;
    padding: 30px 20px;
    border-top: 0.5px solid var(--divider);
    color: var(--text-dim);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6bb83d;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--surface);
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 12px 10px;
    }

    .layout {
        flex-direction: column;
    }

    nav {
        position: static;
        max-height: none;
        margin-bottom: 20px;
        width: 100%;
        padding: 16px;
        display: none;
    }

    nav.active {
        display: block;
    }

    main {
        width: 100%;
    }

    section {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .logo {
        font-size: 2rem;
    }

    /* Mobile navigation menu */
    .mobile-nav-toggle {
        display: block;
        background: var(--accent);
        color: var(--accent-ink);
        border: none;
        padding: 12px 15px;
        width: 100%;
        text-align: left;
        font-family: var(--font-ui);
        font-weight: 700;
        font-size: 1.05rem;
        margin-bottom: 15px;
        border-radius: var(--r-xs);
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }

    nav {
        display: block !important;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    body {
        padding: 8px 6px;
    }

    section {
        padding: 16px 12px;
    }

    h1 {
        font-size: 1.55rem;
    }

    .logo {
        font-size: 1.85rem;
    }
}
