/* ============================================================
   CARTOON / COMIC STYLE — Legal pages
   (terms, privacy, refund)
   ============================================================ */

/* ── CSS variables (standalone pages) ── */
:root {
    --ink:        #1a1a2e;
    --pop-blue:   #3b82f6;
    --pop-green:  #22c55e;
    --pop-yellow: #fde047;
    --pop-purple: #a855f7;
    --pop-orange: #fb923c;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Fredoka', sans-serif;
    margin: 0;
    padding: 0;
    background: #fdf6ec;
    min-height: 100vh;
    color: var(--ink);
}

/* ── Page wrapper ── */
.legal-container {
    max-width: 820px;
    margin: 2.5rem auto 0;
    padding: 0 1.25rem 3rem;
}

/* ── Page title ── */
.legal-container h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    margin: 0 0 2rem;
    padding: 20px 28px;
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: 7px 7px 0 var(--ink);
    position: relative;
    overflow: hidden;
}
/* subtle diagonal stripe behind title */
.legal-container h1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 14px,
        rgba(255, 220, 50, .10) 14px,
        rgba(255, 220, 50, .10) 28px
    );
    pointer-events: none;
}

/* ── Sections ── */
.legal-container section {
    background: #fff;
    border: 4px solid var(--ink);
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--ink);
    padding: 1.25rem 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform 0.12s, box-shadow 0.12s;
}
.legal-container section:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
}

/* Cycle a subtle left-border accent per section */
.legal-container section:nth-child(1) { border-left: 6px solid var(--pop-blue);   }
.legal-container section:nth-child(2) { border-left: 6px solid var(--pop-green);  }
.legal-container section:nth-child(3) { border-left: 6px solid var(--pop-purple); }
.legal-container section:nth-child(4) { border-left: 6px solid var(--pop-orange); }
.legal-container section:nth-child(5) { border-left: 6px solid var(--pop-blue);   }
.legal-container section:nth-child(6) { border-left: 6px solid var(--pop-green);  }
.legal-container section:nth-child(7) { border-left: 6px solid var(--pop-purple); }
.legal-container section:nth-child(8) { border-left: 6px solid var(--pop-orange); }

/* ── Section headings ── */
.legal-container h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Number badge before each h2 */
.legal-container h2::before {
    content: attr(data-n);
    display: none; /* driven by section counter instead */
}

/* ── Body text ── */
.legal-container p {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 0.5rem;
}

/* ── Lists ── */
.legal-container ul,
.legal-container ol {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    padding-left: 0;
    margin: 0.5rem 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-container ul li,
.legal-container ol li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 12px;
    background: #fdf6ec;
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 2px 2px 0 var(--ink);
    font-weight: 600;
}

.legal-container ul li::before {
    content: '✓';
    color: var(--pop-green);
    font-weight: 900;
    font-size: 1rem;
    flex-shrink: 0;
}

.legal-container ol {
    counter-reset: legal-ol;
}
.legal-container ol li {
    counter-increment: legal-ol;
}
.legal-container ol li::before {
    content: counter(legal-ol) '.';
    color: var(--pop-blue);
    font-weight: 900;
    font-size: 0.95rem;
    flex-shrink: 0;
    min-width: 18px;
}

/* ── Important notice box (privacy page) ── */
.important-notice {
    background: var(--pop-green);
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 3px 3px 0 var(--ink);
    padding: 12px 16px;
    margin: 0.75rem 0;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.important-notice::before {
    content: '🔒';
    font-size: 1.1rem;
    flex-shrink: 0;
}
.important-notice strong {
    font-weight: 800;
    color: var(--ink);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .legal-container { padding: 0 0.75rem 2rem; }
    .legal-container h1 { font-size: 1.5rem; padding: 14px 16px; }
    .legal-container h2 { font-size: 1.05rem; }
    .legal-container section { padding: 1rem 1rem 1rem 0.875rem; }
}

