.legal-page { width: min(1000px, calc(100% - 64px)); min-height: 48vh; margin: 0 auto; padding: 115px 0 70px; }
.legal-eyebrow { margin-bottom: 18px; color: #aaa; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.legal-page h1 { margin: 0 0 18px; color: #f3f3f3; font-family: Inter, sans-serif; font-size: clamp(44px, 7vw, 78px); font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.legal-intro { max-width: 680px; margin: 0; color: #aaa; font-size: 15px; line-height: 1.8; }
.legal-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.legal-card { display: flex; min-height: 150px; align-items: center; justify-content: center; padding: 24px; border: 1px solid rgb(255 255 255 / 13%); border-radius: 16px; background: linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1%)); transition: transform .2s ease, border-color .2s ease; }
.legal-card:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 28%); }
.legal-card h2 { margin: 0; color: #eee; font: 600 24px Inter, sans-serif; letter-spacing: -.045em; text-align: center; }
.legal-document { display: grid; gap: 14px; max-width: 760px; margin-top: 35px; padding: 26px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 17px; background: rgb(255 255 255 / 3%); }
.legal-document p, .legal-document li { margin: 0; color: #b8b8b8; font-size: 14px; line-height: 1.8; }
.legal-document h2 { margin: 12px 0 -6px; color: #eee; font: 600 18px Inter, sans-serif; letter-spacing: -.03em; }
.legal-document ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.legal-document a { color: #eee; text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin: 24px 0 -20px; color: #777; font-size: 12px; }
.legal-back { display: inline-flex; margin-top: 26px; color: #d1d1d1; font-size: 13px; }
.legal-back:hover { color: #fff; }
@media (max-width: 700px) {
  .legal-page { width: calc(100% - 40px); padding-top: 105px; }
  .legal-links { grid-template-columns: 1fr; gap: 10px; margin-top: 34px; }
  .legal-card { min-height: 115px; }
  .legal-card h2 { margin: 0; font-size: 22px; }
  .legal-document { padding: 20px; }
}
@media (max-width: 420px) {
  .legal-page { width: calc(100% - 32px); padding-top: 92px; padding-bottom: 44px; }
  .legal-page h1 { font-size: clamp(38px, 12vw, 52px); }
  .legal-card { min-height: 96px; padding: 18px; }
  .legal-card h2 { font-size: 20px; }
  .legal-document { gap: 12px; padding: 17px; border-radius: 14px; }
  .legal-document p, .legal-document li { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
  .legal-document h2 { font-size: 16px; }
  .footer-links-panel { min-height: 0; }
  .footer-link-group { gap: 14px; padding: 18px 13px; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; row-gap: 8px; }
}
@media (max-width: 580px) {
  .site-header .brand { display: inline-flex; min-width: 0; visibility: visible; opacity: 1; }
  .site-header .brand-mark { display: grid; width: 30px; height: 30px; flex: 0 0 30px; }
  .site-header .brand-mark img { display: block; width: 28px; height: 28px; visibility: visible; opacity: 1; object-fit: contain; }
  .site-header .brand > span:last-child { display: inline; white-space: nowrap; }
}

/* Final mobile header overrides: keep the brand, menu button, and language control separate. */
@media (max-width: 700px) {
  header.site-header { position: fixed !important; z-index: 1000 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto 42px !important; grid-template-rows: 1fr !important; align-items: center !important; overflow: visible !important; }
  header.site-header .brand { grid-column: 1 !important; grid-row: 1 !important; display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .brand-mark { display: grid !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .brand-mark img { display: block !important; visibility: visible !important; opacity: 1 !important; object-fit: contain !important; }
  header.site-header .nav-toggle { display: inline-grid !important; grid-column: 3 !important; grid-row: 1 !important; place-self: center !important; visibility: visible !important; opacity: 1 !important; }
  header.site-header .language-menu { grid-column: 2 !important; grid-row: 1 !important; justify-self: end !important; }
  header.site-header .main-nav { position: absolute !important; top: calc(100% + 9px) !important; right: 0 !important; left: auto !important; z-index: 1001 !important; display: none !important; grid-column: auto !important; grid-row: auto !important; width: min(290px, calc(100vw - 24px)) !important; flex-direction: column !important; align-items: stretch !important; }
  header.site-header .main-nav.is-open { display: flex !important; }
  header.site-header .main-nav a { display: flex !important; }
}
