/* Pagini legale — se încarcă după main.css (fonturi, culori, footer) */
body.legal { background: var(--dark); }

.legal-page { max-width: 760px; margin: 0 auto; background: #fff; color: var(--dark); min-height: 100vh; }

.legal-head {
  background:
    linear-gradient(var(--campaign-blue-grout) 0 3px, transparent 3px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--campaign-blue-grout) 0 3px, transparent 3px) 0 0 / 48px 48px,
    var(--campaign-blue);
  color: #fff;
  padding: 18px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-head__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-head .brand__wordmark { height: 36px; }
.legal-head .brand__cameo { height: 44px; }
.legal-back {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.legal-title {
  margin: 0;
  font-weight: 900;
  font-stretch: var(--stretch);
  font-size: clamp(26px, 6.4vw, 38px);
  line-height: 1.28; /* virgula lui Ș/Ț din Archivo coboară adânc — sub 1.26 atinge rândul următor */
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--wendys-red);
  text-wrap: balance;
}
.legal-meta { margin: 0; font-size: 15px; line-height: 1.5; }
.legal-meta a { color: #fff; }

.legal-body { padding: 24px 20px 40px; font-size: 16px; line-height: 1.6; }
.legal-body p { margin: 0 0 12px; }
.legal-body a { color: var(--wendys-red); text-underline-offset: 2px; }
.legal-body a:hover { color: #A80E1F; }

.legal-toc {
  background: var(--receipt-white);
  border-top: 2px dashed var(--receipt-rule);
  border-bottom: 2px dashed var(--receipt-rule);
  padding: 14px 16px;
  margin: 4px 0 24px;
}
.legal-toc__label { font-weight: 900; font-stretch: var(--stretch); font-size: 14px; text-transform: uppercase; margin: 0 0 8px; }
.legal-toc ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.legal-toc li { margin: 2px 0; }

.legal-section { scroll-margin-top: 16px; padding-top: 8px; }
.legal-section h2 {
  margin: 20px 0 10px;
  font-weight: 900;
  font-stretch: 110%;
  font-size: 20px;
  line-height: 1.25;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.legal-section h2 .num { color: var(--wendys-red); min-width: 1.4em; }
.legal-section h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 800; line-height: 1.3; }

.legal-table-wrap { overflow-x: auto; margin: 6px 0 14px; -webkit-overflow-scrolling: touch; }
.legal-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 1.4; }
.legal-table th, .legal-table td { border: 1px solid #D9D2C3; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--receipt-white); font-weight: 800; }

.cookie-declaration { margin: 8px 0 16px; font-size: 14px; overflow-x: auto; }

.legal-pdf { margin-top: 28px; font-size: 14px; color: var(--ink-muted); }

.legal-page .footer { padding-bottom: 32px; }
.legal-page .footer .brand__wordmark { height: 24px; }
.legal-page .footer .brand__cameo { height: 30px; }

@media (hover: hover) and (pointer: fine) {
  .legal-back:hover, .legal-meta a:hover { color: var(--value-yellow); }
}
