/* Page layer — styling for single pages (page.php, page-contact.php,
   page-thank-you.php). Colours, radii and shadows follow the brand spec in
   the Workspace DESIGN.md (Industrial Navy / Kraft Earth / Electric Anchor,
   8pt grid). The canvas colour comes from style.css. */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 24px clamp(56px, 8vw, 96px);
}

/* The masthead keeps its own spacing inside the page container. */
.page__masthead {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.page__accent {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 9999px;
  background: var(--color-brand-kraft);
  margin-bottom: 24px;
}

.page__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-brand-primary);
  text-wrap: balance;
}

.page__surface {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.page__surface > *:first-child {
  margin-top: 0;
}

.page__surface > *:last-child {
  margin-bottom: 0;
}

.page__surface p {
  max-width: 65ch;
}

.page__surface h2,
.page__surface h3,
.page__surface h4 {
  color: var(--color-brand-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.page__surface a {
  color: var(--color-brand-cta);
  text-underline-offset: 3px;
}

.page__surface a:hover {
  color: var(--color-brand-secondary);
}

.page__surface h1,
.page__surface h2,
.page__surface h3 {
  margin: 32px 0 16px;
}

.page__surface h1:first-child,
.page__surface h2:first-child,
.page__surface h3:first-child {
  margin-top: 0;
}

.page__surface ul,
.page__surface ol {
  padding-left: 20px;
  line-height: 1.7;
}

.page__surface blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--color-brand-kraft);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
}

.page__surface img {
  border-radius: var(--radius-card);
}

.page__surface table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.page__surface th,
.page__surface td {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
}

.page__surface thead th {
  background: var(--color-brand-primary);
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
}

.page__surface tbody tr:nth-child(even) {
  background: var(--color-surface-muted);
}

.page__surface--guarded {
  max-width: 560px;
}

.page__surface--guarded input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.page__surface--guarded input[type="password"]:focus {
  outline: none;
  border-color: var(--color-brand-cta);
}

.page__surface--guarded input[type="submit"] {
  margin-top: 16px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand-primary);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.page__surface--guarded input[type="submit"]:hover {
  background: var(--color-brand-secondary);
}

@media (max-width: 600px) {
  .page__surface {
    padding: 20px;
  }
}

/* Long-form page composition (About-style pages) */
.page__surface p.page__lead {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 70ch;
  color: var(--color-text);
}

.page__surface ul.page__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding-left: 0;
  list-style: none;
}

.page__surface .page__facts li {
  margin-bottom: 0;
  padding: 20px 24px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-brand-kraft);
  border-radius: var(--radius-card);
}

.page__surface .page__facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-brand-primary);
}

.page__surface .page__facts span {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Spec tables stay legible on narrow screens: keep columns intact and
   let the table scroll sideways instead of wrapping to one word a line. */
@media (max-width: 700px) {
  .page__surface table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .page__surface th,
  .page__surface td {
    white-space: nowrap;
  }
}

/* Contact page: intro column + request form panel */
.contact {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.contact__intro,
.contact__form {
  min-width: 0;
}

.contact__intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.contact__intro p,
.contact__intro ul {
  max-width: 60ch;
}

.contact__intro ul {
  padding-left: 20px;
}

.contact__intro h2 {
  margin: 32px 0 16px;
  font-weight: 600;
  color: var(--color-brand-primary);
}

.contact__intro > *:first-child {
  margin-top: 0;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

/* Request form */
.rfq {
  padding: clamp(24px, 4vw, 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.rfq__fields {
  display: grid;
  gap: 16px;
}

@media (min-width: 620px) {
  .rfq__fields {
    grid-template-columns: 1fr 1fr;
  }

  .rfq__field--wide {
    grid-column: 1 / -1;
  }
}

.rfq__field {
  margin: 0;
}

.rfq__field--top {
  margin-top: 24px;
}

.rfq__label,
.rfq__legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.rfq__input,
.rfq__textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
}

.rfq__textarea {
  resize: vertical;
}

.rfq__input:focus,
.rfq__textarea:focus {
  outline: none;
  border-color: var(--color-brand-cta);
  box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.12);
}

.rfq__group {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.rfq__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rfq__chip {
  position: relative;
  display: inline-flex;
}

.rfq__chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.rfq__chip span {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  cursor: pointer;
}

.rfq__chip span:hover {
  border-color: var(--color-brand-cta);
  color: var(--color-brand-primary);
}

.rfq__chip input:checked + span {
  color: #fff;
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

.rfq__chip input:focus-visible + span {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.rfq__actions {
  margin: 24px 0 0;
}

.rfq__submit {
  padding: 15px 24px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand-primary);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
}

.rfq__submit:hover {
  background: var(--color-brand-secondary);
}

.rfq__submit:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.rfq__note {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Thank-you page */
.thanks {
  max-width: 640px;
  margin-top: 32px;
  padding: clamp(32px, 5vw, 48px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.thanks__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-compliance);
  background: rgba(13, 148, 136, 0.08);
  border-radius: 9999px;
}

.thanks__mark svg {
  width: 24px;
  height: 24px;
}

.thanks__message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.thanks__message p {
  max-width: 60ch;
}

.thanks__actions {
  margin: 32px 0 0;
}

.page__cta {
  display: inline-block;
  padding: 15px 24px;
  font-weight: 600;
  color: #fff;
  background: var(--color-brand-primary);
  border-radius: var(--radius-control);
  text-decoration: none;
}

.page__cta:hover {
  background: var(--color-brand-secondary);
}
/* ---------------------------------------------------------------
   Contact Page Dedicated Styles (page-contact.php)
   --------------------------------------------------------------- */
.page--contact {
  padding-top: 0;
}

.contact-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(40px, 5vw, 64px) 0;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.contact-hero__inner {
  display: grid;
  gap: 32px;
}

.contact-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-kraft);
}

.contact-hero__lead {
  margin: 16px 0 0;
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
}

.contact-sla-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.sla-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-compliance);
  border-radius: var(--radius-card);
}

.sla-item__val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  font-family: var(--font-mono);
}

.sla-item__label {
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-secondary);
}

.sla-item__sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.contact-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 48px;
  }
}

.contact-details {
  display: grid;
  gap: 24px;
}

.channel-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.channel-card__heading {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.channel-card__subheading {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.channel-card__desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.contact-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.contact-info-list li {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.875rem;
}

.contact-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.info-val {
  color: var(--color-text);
  font-size: 0.9375rem;
}

.info-val strong {
  color: var(--color-brand-cta);
}

.facility-entry {
  margin-top: 16px;
}

.facility-entry--border {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.facility-entry__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
}

.facility-entry__name {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.facility-entry__address {
  margin: 0 0 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
}

.facility-entry__meta {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.plant-visual-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.plant-visual-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.plant-visual-card__caption {
  padding: 10px 16px;
  background: var(--color-surface-muted);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.channel-card--highlight {
  background: #fdfcf9;
  border-left: 3px solid var(--color-brand-kraft);
}

.checklist {
  margin: 0;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text);
}

.checklist li {
  margin-bottom: 8px;
}

.checklist li strong {
  color: var(--color-brand-primary);
}

.form-wrapper {
  padding: clamp(24px, 4vw, 40px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised);
}

.form-wrapper__header {
  margin-bottom: 24px;
}

.form-wrapper__title {
  margin: 12px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.form-wrapper__subtitle {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.required {
  color: #dc2626;
}
/* ---------------------------------------------------------------
   About Page Dedicated Styles (page-about.php)
   --------------------------------------------------------------- */
.page--about {
  padding-top: 0;
}

.about-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}

.about-hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }
}

.about-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-kraft);
}

.about-hero__lead {
  margin: 20px 0 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
}

.about-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 600px) {
  .about-hero__facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fact-box {
  display: flex;
  flex-direction: column;
}

.fact-box__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  font-family: var(--font-mono);
  line-height: 1.1;
}

.fact-box__num small {
  font-size: 0.6em;
  color: var(--color-text-muted);
}

.fact-box__label {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.about-hero__frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-raised);
  background: var(--color-surface-muted);
}

.about-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.about-hero__caption {
  padding: 12px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.about-hero__caption strong {
  color: var(--color-brand-primary);
}

/* Values Grid */
.about-values-section {
  background: var(--color-surface-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.value-card__badge {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-brand-cta);
  margin-bottom: 12px;
}

.value-card__title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.value-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Facility Deep Dive */
.about-facility-detail {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.facility-deep-dive {
  display: grid;
  gap: 48px;
}

.facility-row {
  display: grid;
  gap: 32px;
  align-items: center;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .facility-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .facility-row--reverse .facility-row__media {
    order: 2;
  }

  .facility-row--reverse .facility-row__content {
    order: 1;
  }
}

.facility-row__media {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #e2e8f0;
}

.facility-row__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.facility-row__title {
  margin: 12px 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.facility-row__desc {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.65;
}

.spec-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}

.spec-list li:last-child {
  border-bottom: none;
}

.spec-list strong {
  color: var(--color-brand-primary);
}

/* QA & Testing Grid */
.about-qa-section {
  background: var(--color-surface-muted);
  border-top: 1px solid var(--color-border);
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .qa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qa-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.qa-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--color-border);
}

.qa-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-card__body {
  padding: 20px;
  flex-grow: 1;
}

.qa-card__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.qa-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* About Closing */
.about-closing {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.about-closing__box {
  background: var(--color-brand-primary);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 56px);
  color: #ffffff;
  box-shadow: var(--shadow-raised);
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.about-closing__title {
  margin: 16px 0 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
}

.about-closing__desc {
  margin: 0 auto 28px;
  max-width: 65ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.about-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
/* ---------------------------------------------------------------
   Legal & Compliance Pages Dedicated Styles (page-privacy-policy.php, etc.)
   --------------------------------------------------------------- */
.page--legal {
  padding-top: 0;
}

.legal-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(40px, 5vw, 64px) 0;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.legal-hero__inner {
  max-width: 860px;
}

.legal-hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-kraft);
}

.legal-hero__lead {
  margin: 16px 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-hero__meta {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.meta-sep {
  color: var(--color-border);
}

.legal-layout {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 992px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
  }
}

.legal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: var(--shadow-card);
}

.legal-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.legal-section p {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 16px 0;
  padding-left: 20px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-section strong {
  color: var(--color-brand-primary);
}

.legal-highlight-box {
  margin: 20px 0;
  padding: 20px 24px;
  background: var(--color-surface-muted);
  border-left: 4px solid var(--color-brand-cta);
  border-radius: 4px;
}

.legal-highlight-box h3 {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}

.legal-highlight-box ul {
  margin: 0;
  padding-left: 18px;
}

.legal-contact-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  font-size: 0.875rem;
  line-height: 1.6;
}

.legal-contact-card p {
  margin: 0 0 8px;
}

.legal-contact-card p:last-child {
  margin-bottom: 0;
}

.legal-contact-card__title {
  font-size: 1rem;
  color: var(--color-brand-primary);
  margin-bottom: 12px !important;
}

.legal-contact-card a {
  color: var(--color-brand-cta);
  text-decoration: underline;
}

.legal-sidebar {
  position: sticky;
  top: 96px;
}

.legal-sidebar__box {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.legal-sidebar__title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-sidebar__nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.legal-sidebar__nav a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: color 120ms ease;
}

.legal-sidebar__nav a:hover {
  color: var(--color-brand-cta);
  font-weight: 600;
}

.legal-sidebar__action {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.sidebar-help-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-sidebar__action .button {
  width: 100%;
  font-size: 0.8125rem;
  padding: 10px 16px;
}
