:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e1e1e;
  background: #f6f6f6;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

main {
  display: grid;
  place-items: center;
  padding: 64px 24px 24px;
  min-height: 280px;
}

.brand {
  width: min(100%, 487px);
  text-align: center;
  transform: translateY(25px);
}

h1 { margin: 0; line-height: 0; }
h1 img { display: block; width: 100%; height: auto; }

.tagline {
  margin: 24px 0 0;
  font-size: clamp(0.75rem, 3.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
  padding: 24px 34px 20px;
  color: #606060;
  font-size: 0.75rem;
  line-height: 1.4;
}

.company { margin: 0; }
.contact { text-align: center; }
.email { color: #292929; font-size: 1rem; }
address { margin-top: 3px; font-style: normal; }
nav { display: flex; justify-content: flex-end; gap: 16px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid #1e1e1e; outline-offset: 5px; }
nav a { display: inline-flex; align-items: center; min-height: 24px; }

@media (max-width: 700px) {
  main { padding: 48px 28px; }
  .brand { transform: none; }
  .tagline { margin-top: 18px; }
  footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 24px max(20px, env(safe-area-inset-bottom));
    text-align: center;
  }
  .contact { grid-row: 1; }
  nav { justify-content: center; gap: 24px; }
  nav a { min-height: 44px; }
  .desktop-break { display: none; }
}

/* Shared, static legal documents. */
.legal-page { grid-template-rows: auto 1fr auto; }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 34px;
}
.home-logo { display: block; width: 160px; max-width: 45%; }
.home-logo img { display: block; width: 100%; height: auto; }
.back-home { font-size: 0.875rem; color: #606060; padding: 12px 0; }
.legal-main {
  display: block;
  width: min(100%, 808px);
  min-width: 0;
  margin: 0 auto;
  padding: 64px 34px 96px;
  overflow-wrap: anywhere;
}
.document-header { margin-bottom: 32px; }
.legal-main h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 28px 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #606060;
}
.document-meta dt { margin-bottom: 2px; }
.document-meta dd { margin: 0; color: #292929; }
.company-details {
  padding: 24px 0;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #505050;
}
.company-details p { margin: 4px 0; }
.company-details .details-label { margin: 0 0 12px; color: #606060; }
.legal-main section { margin-top: 40px; scroll-margin-top: 24px; }
.legal-main h2 { font-size: 1.25rem; font-weight: 500; line-height: 1.45; margin: 0 0 14px; }
.legal-main h3 { font-size: 1rem; line-height: 1.6; margin: 24px 0 8px; }
.legal-main section p, .legal-main ul, .rights {
  font-size: 1rem;
  line-height: 1.8;
  color: #505050;
  margin: 0 0 16px;
}
.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 10px; }
.rights dt { font-weight: 600; margin-top: 16px; color: #292929; }
.rights dd { margin: 4px 0 0; }
.legal-main a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page footer { border-top: 1px solid #dcdcdc; }
nav a[aria-current="page"] { color: #1e1e1e; text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: absolute; top: 12px; left: 24px; padding: 12px; background: #f6f6f6; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

@media (max-width: 700px) {
  .legal-header { padding: 20px 24px; }
  .home-logo { width: 132px; }
  .legal-main { padding: 40px 24px 64px; }
  .legal-main section { margin-top: 32px; }
}
