/**
 * TutorCall Legal/About Pages — theme override + polish
 * ----------------------------------------------------------------------------
 * Loaded AFTER mevent-legal.css, ONLY on tutor-*.html pages.
 * Retones the shared fastmate palette (pink #FF4D6A / green #10a37f) AND the
 * dark legal topbar to match the TutorCall landing page: LIGHT surfaces
 * (#f6f7f9 / #fff, ink #131a26) with a single warm amber accent (#cf8516),
 * terracotta/sage support. No indigo/violet, no gradient text, no glow.
 * Does NOT affect episode-*.html (they do not link this file).
 * ================================================ */

/* ================================================
   BRAND TOKENS (override mevent-legal.css :root vars)
   Most accents in the base CSS use these vars, so
   redefining them retones the whole page.
   ================================================ */
:root {
    --episode-primary: #cf8516;              /* amber (was #FF4D6A pink) */
    --episode-primary-dark: #b3720f;
    --episode-secondary: rgba(207, 133, 22, 0.12);
    --episode-accent: #cf8516;               /* links (was #10a37f green) */

    --tc-bg: #f6f7f9;
    --tc-surface: #ffffff;
    --tc-ink: #131a26;
    --tc-text-secondary: #4b5563;
    --tc-text-muted: #8b93a1;
    --tc-line: rgba(17, 24, 39, 0.1);
    --tc-amber: #cf8516;
    --tc-amber-soft: rgba(207, 133, 22, 0.12);
    --tc-amber-tagtext: #93610f;
}

/* ================================================
   LIGHT THEME — override dark body/topbar from base
   ================================================ */
body {
    background: var(--tc-bg);
}

.episode-topbar {
    background: rgba(246, 247, 249, 0.86);
    border-bottom: 1px solid var(--tc-line);
}
.episode-topbar .topbar-back { color: var(--tc-ink); }
.episode-topbar .topbar-back:hover { color: var(--tc-amber); }
.episode-topbar .topbar-domain { color: var(--tc-ink); }

.episode-legal-content {
    background-color: var(--tc-bg);
}

/* ================================================
   DOCUMENT CARD — softer radius & elevated shadow
   ================================================ */
.episode-legal-content .legal-document {
    border-radius: 16px;
    padding: clamp(20px, 5vw, 28px);
    box-shadow: 0 8px 28px rgba(17, 24, 39, 0.10);
}

/* ================================================
   TITLE — solid amber underline accent
   ================================================ */
.episode-legal-content .legal-title {
    font-size: clamp(1.45rem, 5vw, 1.7rem);
    letter-spacing: -0.01em;
    color: var(--tc-ink);
    border-bottom: none;
    padding-bottom: 14px;
    position: relative;
}
.episode-legal-content .legal-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--tc-amber);
}

/* Subtitle (used by delete-account page) */
.episode-legal-content .legal-subtitle {
    margin: -6px 0 4px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
}

/* ================================================
   PREAMBLE — subtle amber wash
   ================================================ */
.episode-legal-content .legal-preamble {
    background: var(--tc-amber-soft);
    border-left: 4px solid var(--episode-primary);
    border-radius: 10px;
}

/* ================================================
   SECTION HEADINGS
   ================================================ */
.episode-legal-content .legal-section h2 {
    color: var(--tc-ink);
}

/* ================================================
   LINKS
   ================================================ */
.episode-legal-content a {
    color: var(--episode-primary);
    font-weight: 500;
}

/* ================================================
   ABOUT / FEEDBACK — hero badge & feature cards
   ================================================ */
.episode-about-hero .about-logo {
    background: var(--tc-amber-soft);
    color: var(--tc-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
.episode-about-hero .about-logo svg {
    width: 40px;
    height: 40px;
}

/* Real app-icon image variant: icon already carries its own background,
   so drop the wash but keep a soft neutral shadow. */
.episode-about-hero .about-logo--img {
    background: none;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.10);
}
.episode-about-hero .about-logo--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero title underline → centered under centered hero title */
.episode-about-hero .legal-title {
    padding-bottom: 12px;
}
.episode-about-hero .legal-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.episode-about-feature {
    border: 1px solid var(--tc-line);
    border-radius: 14px;
}
.episode-about-feature .feature-icon {
    background: var(--tc-amber-soft);
    color: var(--tc-amber);
    border-radius: 12px;
}

/* ================================================
   BRAND FOOTER
   ================================================ */
.episode-legal-content .legal-brand strong {
    color: var(--episode-primary);
}

/* ================================================
   EMAIL BUTTON — reusable class (replaces inline green)
   ================================================ */
.tc-email-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--episode-primary);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid var(--episode-primary);
    border-radius: 10px;
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.tc-email-btn:hover {
    background: var(--tc-amber);
    color: #fff;
    text-decoration: none;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 480px) {
    .episode-legal-content {
        padding: 12px;
    }
}
