/* Shared styles for help and legal pages. Keep landing page styles isolated. */
.help-page {
  --help-accent: #b83219;
  --help-muted: #616371;
  --help-card-shadow: 0 3px 10px rgba(13, 13, 18, .04), 0 14px 36px rgba(13, 13, 18, .07);
  background: #faf9f7;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.75;
}

.help-page h1, .help-page h2, .help-page h3, .help-page .logo {
  font-family: Sora, Inter, system-ui, sans-serif;
}

.help-page h2 { font-size: clamp(22px, 2.5vw, 29px); line-height: 1.3; }
.help-page h3 { font-size: 17px; line-height: 1.5; }
.help-page p + p { margin-top: 14px; }
.help-page :where(a, summary):focus-visible { outline: 3px solid #c64124; outline-offset: 5px; border-radius: 5px; }
.help-page [id] { scroll-margin-top: 28px; }
.help-page #contenu:focus { outline: none; }
.help-page .container { max-width: 1120px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.help-header { background: #fff; border-bottom: 1px solid var(--line); }
.help-header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.help-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.help-nav a { padding: 9px 15px; border-radius: 9px; color: #4d4f5c; font-size: 14px; font-weight: 600; }
.help-nav a:hover { background: #f6f6f8; color: var(--ink); }
.help-nav a[aria-current="page"] { background: #fff0e9; color: var(--help-accent); }

.legal-doc-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.legal-doc-nav a { padding: 9px 16px; border: 1px solid #e7e4df; border-radius: 10px; background: #fff; color: #565762; font-size: 13px; font-weight: 600; }
.legal-doc-nav a:hover { border-color: #e59b82; color: var(--help-accent); }
.legal-doc-nav a[aria-current="page"] { border-color: #ebc7b6; background: #fff1e8; color: var(--help-accent); }
.legal-doc-nav + .help-main { padding-top: 30px; }
.help-footer-links a[aria-current="page"] { color: #ffb393; }

.help-hero {
  position: relative;
  padding: 24px 0 64px;
  color: #fff;
  background: radial-gradient(ellipse at 95% 10%, #48231f 0, transparent 52%), #101117;
  border-bottom: 3px solid #ff5e3a;
}
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; color: #c4c1cb; font-size: 13px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }
.help-hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 72px; }
.help-eyebrow { color: var(--help-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.help-hero .help-eyebrow { color: #ffb393; }
.help-hero h1 { margin: 14px 0 22px; font-size: clamp(35px, 4.6vw, 55px); letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.help-lead { max-width: 650px; color: #d1cdd5; font-size: 17px; line-height: 1.8; }
.help-updated { margin-top: 24px; color: #bbb8c4; font-size: 13px; }
.contact-card { padding: 30px; border: 0; background: #ffffff08; border-radius: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, .16), 0 20px 48px rgba(0, 0, 0, .24); }
.contact-card h2 { margin: 10px 0 12px; font-size: 23px; }
.contact-card > p:not(.help-eyebrow) { font-size: 14px; color: #d1cdd5; }
.contact-card .help-button { margin-top: 24px; width: 100%; overflow-wrap: anywhere; }
.contact-note { display: block; margin-top: 12px; color: #c4c1cb; font-size: 12px; line-height: 1.7; }
.hero-facts { display: grid; gap: 0; }
.hero-facts li { padding: 17px 0; border-bottom: 1px solid #ffffff24; }
.hero-facts li:first-child { padding-top: 0; }
.hero-facts li:last-child { padding-bottom: 0; border: 0; }
.hero-facts strong { display: block; color: #fff; font-size: 15px; }
.hero-facts span { display: block; margin-top: 3px; color: #c4c1cb; font-size: 13px; }
.hero-facts a { color: #ffb393; text-decoration: underline; text-underline-offset: 3px; }

.help-main { padding-block: 54px 72px; }
.section-intro { margin-bottom: 24px; }
.section-intro p { margin-top: 10px; color: var(--help-muted); }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 44px; }
.topic-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: #fff; border: 0; border-radius: 18px; box-shadow: var(--help-card-shadow); transition: box-shadow .2s; }
.topic-card:hover { box-shadow: 0 6px 16px rgba(13, 13, 18, .06), 0 20px 44px rgba(13, 13, 18, .12); }
.topic-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 20px; background: #fff0e9; color: var(--help-accent); border-radius: 12px; }
.topic-icon svg { width: 23px; height: 23px; }
.topic-card p { margin: 10px 0 20px; color: var(--help-muted); font-size: 14px; }
.topic-link { margin-top: auto; color: var(--help-accent); font-size: 13px; font-weight: 700; }
.support-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.content-card { padding: 32px; margin-bottom: 22px; background: #fff; border: 0; border-radius: 18px; box-shadow: var(--help-card-shadow); }
.section-number { display: block; color: var(--help-accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 10px; }
.content-card h2 { margin-bottom: 16px; }
.content-card h3 { margin-top: 22px; margin-bottom: 8px; }
.content-card p, .content-card li { color: #4d4f5c; font-size: 15px; }
.content-card strong, .deletion-card strong, .faq-answer strong { color: var(--ink); }
.help-list { list-style: disc; padding-left: 20px; margin-block: 14px; }
.help-page ol.help-list { list-style: decimal; }
.help-list li + li { margin-top: 9px; }
.help-list li::marker { color: var(--help-accent); }
.help-page :where(.content-card, .deletion-card, .faq-answer) a:not(.help-button) { color: var(--help-accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.help-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 1px solid transparent; border-radius: 11px; background: #b83219; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; transition: background .2s; }
.help-button:hover { background: #972812; }
.help-button-secondary { color: var(--ink); background: #fff; border-color: #d9cec8; }
.help-button-secondary:hover { background: #fff6f0; }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.help-note { font-size: 13px !important; line-height: 1.8; color: #65606a; margin-top: 18px; }
.deletion-card { margin-top: 22px; padding: 38px; border: 0; border-radius: 20px; background: #fff1e8; box-shadow: 0 3px 10px rgba(115, 52, 27, .04), 0 14px 36px rgba(115, 52, 27, .10); }
.deletion-card h2 { margin: 10px 0 16px; }
.deletion-card > h3 { margin-top: 24px; margin-bottom: 10px; }
.deletion-card > p:not(.help-eyebrow) { max-width: 850px; color: #4f4746; font-size: 15px; }
.help-steps { counter-reset: step; padding: 0; list-style: none; display: grid; gap: 22px; margin: 28px 0; }
.help-steps li { position: relative; padding-left: 48px; counter-increment: step; }
.help-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border: 1px solid #e4b6a0; border-radius: 50%; color: #a42e1b; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.help-steps h3 { margin: 0 0 6px; font-size: 15px; }
.help-steps p { font-size: 14px; color: #5c5350; }
.faq-section { margin-top: 52px; }
.faq-list { border: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--help-card-shadow); }
.faq-list details + details { border-top: 1px solid #e7e4df; }
.faq-list summary { position: relative; list-style: none; padding: 23px 60px 23px 28px; font-weight: 600; font-size: 15px; line-height: 1.65; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 28px; top: 20px; color: var(--help-accent); font-size: 23px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] summary { color: var(--help-accent); }
.faq-answer { padding: 0 28px 24px; font-size: 15px; color: #4d4f5c; }

.privacy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 36px; }
.privacy-toc { position: sticky; top: 28px; padding: 22px; background: #fff; border: 0; border-radius: 16px; box-shadow: var(--help-card-shadow); }
.privacy-toc h2 { margin-bottom: 18px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.privacy-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.privacy-toc a { display: block; padding: 8px 0; color: #565762; font-size: 13px; line-height: 1.55; }
.privacy-toc a:hover { color: var(--help-accent); text-decoration: underline; text-underline-offset: 3px; }
.privacy-toc .toc-deletion { color: var(--help-accent); font-weight: 700; }
.privacy-content { min-width: 0; }
.privacy-content .deletion-card { margin: 0 0 22px; padding: 32px; }
.data-list { margin: 20px 0 0; }
.data-list > div { padding: 16px 0; border-top: 1px solid #ece9e4; }
.data-list dt { color: var(--ink); font-weight: 600; font-size: 15px; }
.data-list dd { margin: 6px 0 0; color: #565762; font-size: 14px; line-height: 1.8; }

.help-footer { padding: 34px 0; background: #101117; color: #bfc0ca; font-size: 13px; }
.help-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.help-footer .logo { color: #fff; }
.help-footer p { margin-top: 10px; }
.help-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.help-footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .help-hero-grid { gap: 32px; grid-template-columns: 1.2fr 1fr; }
  .privacy-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .support-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .topic-card, .content-card { padding: 24px; }
}

@media (max-width: 760px) {
  .help-header-inner { gap: 12px; padding-block: 16px; flex-wrap: wrap; }
  .help-nav { gap: 0; }
  .help-nav a { padding: 8px 10px; font-size: 13px; }
  .help-hero { padding-bottom: 40px; }
  .breadcrumb { margin-bottom: 28px; }
  .help-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .help-hero h1 { max-width: 560px; }
  .help-lead { font-size: 16px; }
  .contact-card { padding: 24px; }
  .contact-card .help-button { width: auto; }
  .help-main { padding-block: 36px 48px; }
  .topic-grid, .support-layout, .privacy-layout { grid-template-columns: 1fr; }
  .topic-grid { gap: 12px; margin-bottom: 28px; }
  .topic-card { padding: 22px; }
  .topic-icon { margin-bottom: 14px; }
  .topic-card p { margin-bottom: 12px; }
  .support-layout { gap: 0; }
  .privacy-toc { position: static; padding: 22px; }
  .privacy-toc ol { grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .deletion-card, .privacy-content .deletion-card { padding: 26px 22px; }
  .help-footer-inner { align-items: flex-start; flex-direction: column; }
  .help-footer-links { justify-content: flex-start; gap: 12px 20px; }
}

@media (max-width: 400px) {
  .help-header-inner { justify-content: center; }
  .help-nav { justify-content: center; width: 100%; }
  .privacy-toc ol { grid-template-columns: 1fr; }
  .help-actions { flex-direction: column; }
  .help-button { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.help-page) { scroll-behavior: auto; }
  .help-page *, .help-page *::before, .help-page *::after { transition: none !important; }
}

@media print {
  .help-page { background: #fff; color: #000; }
  .help-header, .help-footer, .privacy-toc, .help-actions, .skip-link, .breadcrumb, .legal-doc-nav { display: none; }
  .help-hero { background: #fff; color: #000; padding: 20px 0; border-bottom: 1px solid #ccc; }
  .help-hero :is(p, strong, span, a, .help-eyebrow) { color: #222; }
  .help-hero-grid, .privacy-layout, .support-layout, .topic-grid { display: block; }
  .contact-card { margin-top: 20px; }
  .content-card, .deletion-card { background: #fff; }
  .contact-card, .topic-card, .content-card, .deletion-card, .faq-list { box-shadow: none; }
  .help-page h2, .help-page h3 { break-after: avoid; }
}
