/* =========================================
   CONTENT / LEGAL PAGES — shared layout
   Used by: privacy.html, terms.html, shipping.html,
   returns.html, faq.html, care.html
   Text-only pages. No WebGL scene — a static CSS
   night-sky background keeps the brand DNA while
   staying lightweight. Shared base styles (tokens,
   cursor, navbar, buttons, footer shell) live in
   style.css.
   ========================================= */

/* Static night-sky background (replaces per-page WebGL) */
body.content-page-body {
    background-color: var(--bg-void);
    background-image:
        radial-gradient(circle at 18% 12%, rgba(212, 175, 55, 0.06) 0%, rgba(3, 4, 7, 0) 42%),
        radial-gradient(circle at 82% 78%, rgba(168, 129, 96, 0.05) 0%, rgba(3, 4, 7, 0) 46%),
        linear-gradient(180deg, #05060a 0%, #030407 60%);
}

/* Layer above the fixed background fallback */
.jynn-layer {
    position: relative;
    z-index: 10;
}

/* =========================================
   CONTENT HERO
   ========================================= */
.content-hero {
    padding: 16rem 0 4rem;
    border-bottom: 1px solid var(--border-light);
}

.content-hero .content-eyebrow {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-glow);
    display: inline-block;
    border-left: 2px solid var(--accent-glow);
    padding-left: 1rem;
    margin-bottom: 1.75rem;
}

.content-hero h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.content-hero .content-lede {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 720px;
}

.content-hero .content-updated {
    margin-top: 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    opacity: 0.8;
}

/* =========================================
   PROSE / DOCUMENT BODY
   ========================================= */
.content-body {
    padding: 5rem 0 8rem;
}

.content-prose {
    max-width: 820px;
}

.content-prose section {
    margin-bottom: 4rem;
}

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

.content-prose h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    color: var(--text-bright);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.content-prose h3 {
    font-size: 1.25rem;
    color: var(--accent-glow);
    letter-spacing: 0.02em;
    margin: 2.5rem 0 1rem;
}

.content-prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.content-prose p strong,
.content-prose li strong {
    color: var(--text-bright);
    font-weight: 500;
}

.content-prose a {
    color: var(--accent-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
    transition: var(--transition-fast);
}

.content-prose a:hover {
    color: var(--text-bright);
    border-bottom-color: var(--text-bright);
}

.content-prose ul,
.content-prose ol {
    margin: 0 0 1.5rem 1.25rem;
    color: var(--text-dim);
}

.content-prose li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.content-prose ul li::marker {
    color: var(--accent-glow);
}

.content-prose ol li::marker {
    color: var(--accent-glow);
    font-family: monospace;
}

/* Callout / highlight block (authenticity, trust statements) */
.content-callout {
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-glow);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2.25rem;
    margin: 2.5rem 0;
}

.content-callout p {
    margin-bottom: 0;
    color: var(--text-bright);
    font-style: italic;
    line-height: 1.7;
}

/* Definition pairs (e.g. payment methods, key terms) */
.content-prose dl {
    margin-bottom: 1.5rem;
}

.content-prose dt {
    color: var(--text-bright);
    font-weight: 500;
    margin-top: 1.25rem;
}

.content-prose dd {
    color: var(--text-dim);
    line-height: 1.8;
    margin: 0.35rem 0 0 0;
}

/* =========================================
   FAQ / ACCORDION
   ========================================= */
.faq-list {
    max-width: 820px;
    border-top: 1px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.75rem 3rem 1.75rem 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-bright);
    cursor: none;
    position: relative;
    transition: var(--transition-fast);
    line-height: 1.3;
}

.faq-question:hover {
    color: var(--accent-glow);
}

.faq-question .faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
    content: "";
    position: absolute;
    background: var(--accent-glow);
    transition: var(--transition-fast);
}

.faq-question .faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: translateY(-50%);
}

.faq-question .faq-icon::after {
    left: 50%;
    top: 0;
    width: 1.5px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.open .faq-question .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 3rem 2rem 0;
}

.faq-answer-inner p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-dim);
}

.faq-answer-inner li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.faq-answer-inner li::marker {
    color: var(--accent-glow);
}

/* Section grouping label inside FAQ */
.faq-group-label {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin: 4rem 0 1.5rem;
}

.faq-group-label:first-child {
    margin-top: 0;
}

/* =========================================
   CONTACT STRIP (bottom of content pages)
   ========================================= */
.content-contact {
    border-top: 1px solid var(--border-light);
    margin-top: 5rem;
    padding-top: 3rem;
}

.content-contact h3 {
    color: var(--text-bright);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.content-contact p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.content-contact a {
    color: var(--accent-glow);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.content-contact a:hover {
    color: var(--text-bright);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .content-hero {
        padding: 11rem 0 3rem;
    }

    .content-body {
        padding: 3rem 0 5rem;
    }

    .faq-question {
        font-size: 1.05rem;
        padding-right: 2.5rem;
    }

    * {
        cursor: auto;
    }
}

/* =========================================
   ERROR PAGES (404 / 403)
   ========================================= */
.error-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 0 6rem;
}

.error-inner {
    max-width: 640px;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 22vw, 15rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
}

.error-eyebrow {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-bottom: 1.25rem;
}

.error-title {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.error-msg {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.error-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}
