/* Shared style of the legal pages (privacy, terms, notices). Black and white, compact spacing,
   readable type on phones, tablets and desktops. Works with both page layouts used here:
   .container (privacy, delete account, child safety, kids) and header/section/footer (terms, notices). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* anchors land below the sticky bar */
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}

/* ---------------------------------------------------------------- top bar */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(12px, 3vw, 28px);
  padding-top: env(safe-area-inset-top, 0px);
  min-height: 52px;
  background: #000000;
  color: #ffffff;
}

.legal-nav .brand {
  flex: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 0;
}

.legal-nav .links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.legal-nav .links::-webkit-scrollbar {
  display: none;
}

.legal-nav .links a {
  flex: none;
  padding: 8px 10px;
  border-radius: 6px;
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.legal-nav .links a:hover,
.legal-nav .links a:focus-visible {
  background: #ffffff;
  color: #000000;
}

.legal-nav .links a[aria-current="page"] {
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #ffffff;
  border-radius: 0;
}

/* ---------------------------------------------------------------- page */

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) clamp(16px, 4vw, 32px) 48px;
}

.container {
  padding: clamp(20px, 4vw, 44px);
  border: 1px solid #000000;
}

h1,
h2,
h3 {
  color: #000000;
  line-height: 1.3;
  scroll-margin-top: 64px;
}

h1 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #000000;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 300;
  text-align: center;
}

h2 {
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #000000;
  font-size: clamp(18px, 2.4vw, 20px);
  font-weight: 600;
}

h3 {
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p,
ul,
ol {
  margin: 0 0 14px;
  font-size: 15.5px;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 6px;
}

ul ul {
  margin: 6px 0 4px;
}

strong {
  font-weight: 600;
}

code {
  padding: 1px 6px;
  border: 1px solid #000000;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #000000;
}

/* Links: underlined; hover inverts without moving the text around. */
a {
  color: #000000;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

a:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0 0 2px #000000;
}

a:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- privacy-style blocks */

.company-header {
  margin-bottom: 20px;
  text-align: center;
}

.company-logo {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 300;
}

.company-logo a {
  text-decoration: none;
}

.last-updated {
  margin: 0 auto 24px;
  padding: 8px 14px;
  background: #000000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.table-of-contents {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid #000000;
}

.table-of-contents h2 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-of-contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 28px;
}

.table-of-contents li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #ececec;
  break-inside: avoid;
  counter-increment: toc;
  font-size: 14.5px;
}

.table-of-contents li::before {
  flex: none;
  width: 22px;
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.9;
}

.table-of-contents a {
  font-weight: 400;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: none;
}

.highlight-box,
.important-note {
  margin: 20px 0;
  padding: clamp(16px, 3vw, 24px);
}

.highlight-box {
  border: 2px solid #000000;
}

.important-note {
  background: #000000;
  color: #ffffff;
}

.highlight-box > p:first-child,
.important-note > p:first-child {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-box ul:last-child,
.important-note ul:last-child {
  margin-bottom: 0;
}

.important-note p,
.important-note li,
.important-note strong {
  color: #ffffff;
}

.important-note a,
.contact-section a {
  color: #ffffff;
}

.important-note a:hover,
.contact-section a:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 0 2px #ffffff;
}

.contact-section {
  margin-top: 36px;
  padding: clamp(20px, 4vw, 32px);
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.contact-section h2 {
  margin-top: 0;
  border-color: #ffffff;
  color: #ffffff;
}

.contact-section p {
  color: #ffffff;
}

.email-link {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 12px 22px;
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #000000 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.email-link:hover {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ---------------------------------------------------------------- terms / notice layout */

.page > header {
  margin-bottom: 20px;
  padding: clamp(18px, 4vw, 28px);
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.page > header h1 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #ffffff;
}

.page > header h1 a {
  color: #ffffff;
  text-decoration: none;
}

.page > header h2 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #d4d4d4;
  font-size: 15px;
  font-weight: 400;
}

.page > header p {
  margin: 0;
  color: #d4d4d4;
  font-size: 13px;
}

.page > header strong {
  font-weight: 400;
}

.page > main {
  padding: 0;
}

.page > main > h1 {
  text-align: left;
}

.page > section {
  margin-bottom: 8px;
}

.page > footer {
  margin-top: 36px;
  padding: 20px;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

.page > footer p {
  margin: 4px 0;
  font-size: 14px;
}

.page > footer a {
  color: #ffffff;
}

.page > footer a:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 0 2px #ffffff;
}

/* ---------------------------------------------------------------- tablets and phones */

@media (max-width: 720px) {
  .table-of-contents ol {
    columns: 1;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 12px 14px 32px;
  }

  /* On a phone the frame wastes width: the content uses the whole screen. */
  .container {
    padding: 4px 0 0;
    border: 0;
  }

  .legal-nav {
    gap: 10px;
  }

  .legal-nav .links a {
    padding: 10px 8px;
  }

  h2 {
    margin-top: 28px;
  }

  p,
  ul,
  ol {
    font-size: 15px;
  }

  .table-of-contents {
    padding: 12px 14px;
  }

  .contact-section {
    margin-left: -14px;
    margin-right: -14px;
  }
}

@media print {
  .legal-nav {
    display: none;
  }

  .container {
    border: 0;
  }
}
