/* Support and legal documents share the landing's type, gradient and brand assets. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

.legal-page {
  --brand-gradient: linear-gradient(120deg, #65cd96 0%, #39ba97 41%, #15aa99 79%, #07a499 100%);
  min-width: 0;
  color: #103331;
  background: #f8faf9;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.legal-page .site-header,
.legal-page .site-footer {
  background: var(--brand-gradient);
}

.legal-page .site-header {
  border-bottom: 1px solid rgb(255 255 255 / 15%);
  box-shadow: 0 1px 3px rgb(16 51 49 / 8%);
}

.legal-page .nav,
.legal-page .footer-inner,
.legal-page .footer-bottom {
  width: min(1152px, calc(100% - 48px));
}

.legal-page .nav { min-height: 80px; }
.legal-page .brand { font-size: 24px; }
.legal-page .brand:hover { color: #fff; }
.legal-page .brand img { width: 56px; height: 56px; filter: drop-shadow(0 2px 4px rgb(3 76 71 / 20%)); }
.legal-page .brand span { display: block; }
.legal-page .nav-links { gap: 28px; }
.legal-page .nav-links a,
.legal-page .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.legal-page .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.legal-page .nav-links li:first-child { display: block; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 999px; color: #103331; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.language-switch:hover { color: #103331; background: #eff8f4; }
.legal-page .document .button { min-height: 48px; color: #103331; background: hsl(164 53% 48%); border: 0; border-radius: 999px; box-shadow: 0 8px 20px rgb(58 187 153 / 20%); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.legal-page .document .button:hover { color: #103331; background: hsl(164 53% 53%); transform: translateY(-1px); }
.legal-page .action-panel { padding: 24px; background: #f3fbf7; border: 1px solid #d6e9e2; border-radius: 20px; }
.legal-page .action-panel h2 { margin-top: 0; }

.legal-main { padding: 32px 24px 96px; }
.legal-shell { max-width: 896px; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 24px;
  color: #496562;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: #047f78; text-decoration: underline; }

.legal-page .legal-document {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 48px;
  border: 1px solid #dce5e2;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px -16px rgb(16 51 49 / 15%);
  overflow-wrap: anywhere;
}
.legal-document::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  border-bottom-left-radius: 100%;
  background: rgb(57 186 151 / 5%);
  pointer-events: none;
}
.document-header { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.document-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 16px; color: #047f78; background: rgb(57 186 151 / 10%); }
.document-icon svg { width: 24px; height: 24px; }
.document-header h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.legal-page .document-header .meta { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #496562; }
.legal-page .document .lede { margin: 0 0 32px; padding-bottom: 32px; border-bottom: 1px solid #dce5e2; color: #496562; font-size: 18px; line-height: 1.7; }
.legal-page .document h2 { margin: 40px 0 16px; font-size: clamp(20px, 3vw, 24px); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.legal-page .document h3 { font-size: 18px; line-height: 1.4; }
.legal-page .document p,
.legal-page .document li,
.legal-page .document td { color: #496562; line-height: 1.75; }
.legal-page .document ul { padding-left: 24px; }
.legal-page .notice { padding: 24px; border-color: #d6e9e2; border-radius: 16px; background: #eff8f4; }
.legal-page .data-table { font-size: 15px; }
.legal-page .data-table td:first-child { width: 30%; font-weight: 600; color: #103331; }

.legal-page .site-footer { color: #fff; padding: 16px 0 32px; }
.legal-page .footer-inner { align-items: center; padding: 32px 0; border-bottom: 1px solid rgb(255 255 255 / 25%); }
.legal-page .footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin: 0 auto; padding-top: 24px; font-size: 14px; }
.legal-page .footer-bottom a { color: #fff; }
.legal-page .footer-links { justify-content: center; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-200%); padding: 12px 16px; border-radius: 12px; background: #fff; color: #035c58; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 600px) {
  .legal-page .nav { flex-wrap: wrap; justify-content: center; gap: 0; padding: 8px 0 4px; }
  .legal-page .nav .brand { margin-right: auto; font-size: 20px; }
  .legal-page .nav .brand img { width: 48px; height: 48px; }
  .legal-page .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .language-switch { padding: 6px 10px; font-size: 12px; }
  .legal-page .action-panel { padding: 20px 16px; }
  .legal-page .nav-links a { font-size: 13px; }
  .legal-main { padding: 20px 16px 56px; }
  .back-link { margin-bottom: 16px; }
  .legal-page .legal-document { padding: 28px 20px; }
  .document-header { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .document-icon { flex-basis: 40px; height: 40px; border-radius: 12px; }
  .document-icon svg { width: 22px; height: 22px; }
  .document-header h1 { font-size: 28px; }
  .legal-page .document .lede { font-size: 16px; }
  .legal-page .document-header .meta { font-size: 12px; }
  .legal-page .data-table td:first-child { width: auto; }
  .legal-page .footer-bottom { align-items: center; flex-direction: column; text-align: center; }
}

@media print {
  .site-header, .site-footer, .back-link, .skip-link { display: none; }
  .legal-main { padding: 0; }
  .legal-page .legal-document { border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .legal-document::before { display: none; }
}
