/* TNGP Legal / Terms of Service / Privacy typography
   Matches the HWC legal text style (system font, size, line-height,
   left alignment, heading style, spacing, readable column).
   Spinning film-strip logo background mirrors the HWC About/legal
   treatment: sticky/fixed video centered behind the text, text scrolls
   over it, opacity 0.73 desktop / 0.63 phone, scrims for readability.
   2026-11-22
   Phone wrap fix: overflow-wrap/word-break + table-layout:fixed and
   max-width:100% so long Terms lines do not clip at 390.
*/
.tngp-legal {
  box-sizing: border-box;
  width: 100%;
  margin: 8px auto 32px;
  padding: 0 12px 16px;
  text-align: left;
  color: #f2f2f2;
  background: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  color-scheme: dark;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: min(900px, 100%);
}

.tngp-legal,
.tngp-legal * {
  box-sizing: border-box;
}

.tngp-spinpage-stage {
  position: relative;
  display: grid;
  border-radius: 12px;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 22px rgba(0,0,0,.45);
  min-height: 560px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.tngp-spinpage-bg {
  grid-area: 1 / 1;
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  max-height: 100%;
  overflow: hidden;
  pointer-events: none;
  align-self: start;
  border-radius: 12px;
}

.tngp-spinpage-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 115%;
  max-width: none;
  object-fit: contain;
  opacity: 0.73;
  pointer-events: none;
  z-index: 0;
}

.tngp-spinpage-poster {
  display: none;
}

.tngp-spinpage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.38) 0%, rgba(8,8,8,0.24) 45%, rgba(8,8,8,0.39) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.24) 100%);
}

.tngp-spinpage-copy {
  position: relative;
  grid-area: 1 / 1;
  z-index: 2;
  padding: 28px 32px 36px;
  text-align: left;
  margin: 10px 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.34);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.tngp-legal table {
  table-layout: fixed;
}
.tngp-legal table,
.tngp-legal tbody,
.tngp-legal thead,
.tngp-legal tr {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  border-collapse: collapse;
}

.tngp-legal td,
.tngp-legal th,
.tngp-legal p,
.tngp-legal center,
.tngp-legal font,
.tngp-legal pre,
.tngp-legal code {
  text-align: left !important;
  color: #f2f2f2 !important;
  background: transparent !important;
  background-color: transparent !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 16.5px !important;
  line-height: 1.6 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,1), 0 0 14px rgba(0,0,0,0.85);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100% !important;
}

.tngp-legal td,
.tngp-legal th,
.tngp-legal p {
  padding: 0 0 14px !important;
  margin: 0;
}

.tngp-legal tr:last-child > td,
.tngp-legal tr:last-child > th,
.tngp-legal p:last-child {
  padding-bottom: 0 !important;
}

/* Terms title and similar FONT size=5 headings */
.tngp-legal font[size="5"],
.tngp-legal font[size='5'] {
  display: block;
  margin: 0 0 14px;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(22px, 3.4vw, 30px) !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,1), 0 0 14px rgba(0,0,0,0.85);
}

/* Keep the existing RETURN TO SITE (and any other size-5 link) as a normal link, not a page title */
.tngp-legal a font[size="5"],
.tngp-legal a font[size='5'],
.tngp-legal font[size="5"] a,
.tngp-legal font[size='5'] a {
  display: inline;
  margin: 0;
  font-size: 16.5px !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.6 !important;
  color: #ffc56b !important;
}

.tngp-legal a,
.tngp-legal a:visited {
  color: #ffc56b !important;
  text-decoration: none;
  font-family: inherit !important;
  font-size: inherit !important;
}
.tngp-legal a:hover,
.tngp-legal a:focus-visible {
  color: #FFE4B5 !important;
  text-decoration: underline;
}

@media (max-width: 699px) {
  .tngp-legal {
    padding: 0 8px 14px;
    margin: 4px auto 24px;
    font-size: 15.5px;
    line-height: 1.58;
  }
  .tngp-spinpage-stage {
    min-height: 0;
  }
  .tngp-spinpage-spin {
    height: 100%;
    opacity: 0.63;
  }
  .tngp-spinpage-scrim {
    background:
      linear-gradient(180deg, rgba(8,8,8,0.41) 0%, rgba(8,8,8,0.28) 50%, rgba(8,8,8,0.44) 100%),
      radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.27) 100%);
  }
  .tngp-spinpage-copy {
    padding: 20px 16px 26px;
    margin: 8px;
    background: rgba(0,0,0,0.38);
  }
  .tngp-legal td,
  .tngp-legal th,
  .tngp-legal p,
  .tngp-legal center,
  .tngp-legal font {
    font-size: 15.5px !important;
    line-height: 1.58 !important;
  }
  .tngp-legal font[size="5"],
  .tngp-legal font[size='5'] {
    font-size: clamp(22px, 3.4vw, 30px) !important;
    line-height: 1.25 !important;
  }
  .tngp-legal a font[size="5"],
  .tngp-legal a font[size='5'],
  .tngp-legal font[size="5"] a,
  .tngp-legal font[size='5'] a {
    font-size: 15.5px !important;
    line-height: 1.58 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tngp-spinpage-spin {
    display: none;
    animation: none;
  }
  .tngp-spinpage-poster {
    display: block;
  }
}
