:root {
  --legal-ink: #000;
  --legal-muted: #666;
  --legal-paper: #fff;
  --legal-white: #fff;
  --legal-line: #e6e6e6;
  --legal-red: #000;
  --legal-display: Arial, "Helvetica Neue", sans-serif;
  --legal-body: Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body.legal-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--legal-ink);
  background: var(--legal-paper);
  font-family: var(--legal-body);
  font-size: .875rem;
  line-height: 1.8;
}

.legal-page .globalHeader { display: flex; align-items: center; width: 100%; }
.legal-page .globalHeader-title {
  margin: 0 0 0 auto;
  color: #fff;
  font-family: var(--legal-display);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-header {
  min-height: 82px;
  padding: 14px clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--legal-white);
  border-bottom: 1px solid #e2e4e0;
}

.legal-header h1 {
  margin: 0;
  font-family: var(--legal-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
}

.legal-logo { display: inline-flex; flex: 0 0 auto; }
.legal-logo img { display: block; width: 116px; height: auto; }

main.terms {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 76px;
  flex: 1;
}

.legal-draft {
  margin: 0 0 25px;
  padding: 13px 17px;
  border-left: 3px solid var(--legal-red);
  color: #333;
  background: #f2f2f2;
  font-size: 14px;
  line-height: 1.5;
}

.legal-back-link {
  margin: 0 0 30px;
  font-size: 14px;
}

.legal-page a {
  color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-page a:hover { color: #666; }
.legal-page a:focus-visible { outline: 3px solid rgb(200 16 46 / 25%); outline-offset: 3px; }

.terms section {
  margin: 0;
  padding: 26px 0 28px;
  border-top: 1px solid var(--legal-line);
}

.terms section h2 {
  margin: 0 0 13px;
  font-family: var(--legal-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.terms section p { margin: 0 0 13px; }
.terms section p:last-child { margin-bottom: 0; }
.terms ul { padding-left: 24px; }
.terms li { margin: 0 0 8px; }
.terms strong { font-weight: 700; }

.legal-footer {
  padding: 23px clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #e6e6e6;
  background: #000;
  font-size: 12px;
}

.legal-socials ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.legal-socials img { display: block; width: 22px; height: 22px; }
.legal-footer a { display: inline-flex; align-items: center; }
.legal-footer .legal-footer-logo img { display: block; width: 96px; height: auto; }
.legal-copyright { margin: 8px 0 0; color: #aeb3ae; }

@media (max-width: 620px) {
  .legal-page .globalHeader-title { font-size: .625rem; }
  main.terms { width: calc(100% - 40px); padding: 24px 0 52px; }
  .terms section { padding: 21px 0 23px; }
  .terms section h2 { font-size: 22px; }
  .legal-footer { align-items: flex-start; flex-direction: column; padding: 20px; }
}
