/* Simple content pages (Terms, Privacy, Refund, Feedback, Instructor, Success, Share) on the main site design.
   Loaded after base.css + style.css. Maps the older --fb-* tokens used by site-forms.css onto the current
   cream / warm-dark palette so forms follow the theme toggle. 2026-11-27. */
:root {
  --fb-canvas: var(--color-bg); --fb-surface: var(--color-surface); --fb-ink: #191A1D; --fb-text: var(--color-text);
  --fb-muted: var(--color-text-muted); --fb-border: var(--color-divider); --fb-border-strong: #B9B5AB; --fb-line: var(--color-divider);
  --fb-orange: #FF6238; --fb-orange-hot: #FF4D1E; --fb-control-min-height: 44px; --fb-radius-card: 20px;
}
html[data-theme="dark"] { --fb-ink: #141311; --fb-border-strong: #524F47; }

/* site-forms.css narrows <body class="ffp">; the header and footer need the full width. */
body.ffp { max-width: none; margin: 0; padding: 0; background: var(--color-bg); color: var(--color-text); }

.page { padding-block: var(--space-10, 48px) var(--space-16, 64px); }
.wrap { width: 100%; margin-inline: auto; padding-inline: var(--space-5, 20px); }
.page-narrow { max-width: calc(820px + 40px); }
.page.ffp .wrap { max-width: calc(760px + 40px); }

.page h1 { font-family: var(--font-display, inherit); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; margin: 0 0 var(--space-4, 16px); }
.prose { font-size: 1.0625rem; line-height: 1.7; color: var(--color-text); }
.prose h2 { font-family: var(--font-display, inherit); font-size: 1.375rem; line-height: 1.25; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.125rem; margin: 1.3em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose a, .page p a, .page li a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--accent-orange, #FF6238); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover, .page p a:hover { text-decoration-thickness: 2.5px; }

.byline { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: var(--space-6, 24px); }
.lede { font-size: 1.1875rem; line-height: 1.5; color: var(--color-text-muted); margin: 0 0 var(--space-6, 24px); }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.9375rem; }
.note { font-size: 0.9375rem; color: var(--color-text-muted); }

.back-link { margin: 0 0 var(--space-3, 12px); font-size: 0.9375rem; font-weight: 600; }
.back-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-text); text-decoration: none; }
.back-link a:hover { text-decoration: underline; text-decoration-color: var(--accent-orange, #FF6238); }
.contact-mail, .link-inline { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-orange, #FF6238); text-underline-offset: 3px; }

.legal-table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 0.92em; }
.legal-table th, .legal-table td { border: 1px solid var(--color-divider); padding: 8px 10px; text-align: left; vertical-align: top; overflow-wrap: break-word; }
.legal-table th { background: var(--color-surface-offset); color: var(--color-text); }

.card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 20px; padding: 24px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.card.big h2 { font-size: 1.5rem; margin-top: 0; }
.order-card { max-width: calc(720px + 40px); margin: 0 auto; padding: 64px 20px; }
.order-card .card { border: 2px solid var(--color-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.page .btn, .page .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--color-text); background: transparent; color: var(--color-text); font-weight: 700; text-decoration: none; cursor: pointer; }
.page .btn-primary, .page .button { background: #FF6238; border-color: #FF6238; color: #191A1D; }
.page .btn-primary:hover, .page .button:hover { background: #FF4D1E; border-color: #FF4D1E; }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* share.html */
.sh { max-width: calc(640px + 40px); margin: 0 auto; padding: 64px 20px; text-align: center; }
.sh a.big { display: flex; align-items: center; justify-content: center; margin: 16px 0; min-height: 72px; padding: 24px; font-size: 1.25rem; font-weight: 700; border-radius: 20px; text-decoration: none; }
.sh a.big.a { background: #FF6238; color: #191A1D; }
.sh a.big.b { background: var(--color-surface); color: var(--color-text); border: 1.5px solid var(--color-text); }

/* Forms (site-forms.css) on the warm dark theme */
html[data-theme="dark"] .ffp form, html[data-theme="dark"] .ffp fieldset { border-color: var(--color-divider); }
html[data-theme="dark"] .ffp input, html[data-theme="dark"] .ffp textarea, html[data-theme="dark"] .ffp select { background: #1C1B18; color: var(--color-text); }
html[data-theme="dark"] .ffp .stars label { background: #1C1B18; }
html[data-theme="dark"] .ffp .stars label:has(input:checked) { color: #191A1D; }
