/*
 * The ShareRing Link Terms of Service on /terms-and-conditions/, from the gate.
 *
 * Loaded by inc/link-terms.php only for page 988356 after 2026-10-20 00:00
 * Melbourne (or an allowed preview), with templates/legal-link-terms.php. Before
 * the gate this file is not on the page.
 *
 * v2.3 sits on the house backdrop (inc/house-style.php). A document page has no
 * scenes for the scene kit's journey engine to read, so the ground's colour
 * journey is driven by scroll position: deep navy at the top, through lapis and
 * plum, back to navy at the end. Where scroll-driven animation is not supported
 * the ground is a fixed gradient over the same hues, never one flat fill.
 *
 * The ?version=2.2 archive prints the v2.2 text exactly as LIVE printed it,
 * inline styles and all, and those styles are dark text for a light page, so
 * the archive has a light journey of its own instead of the dark backdrop.
 *
 * No card, panel, box, bordered strip or chip anywhere: the notice and the
 * terms sit on the background, set apart by type and spacing.
 */

body.sr-legal-page {
  --srl-ink: rgba(255, 255, 255, 0.84);
  --srl-ink-soft: rgba(255, 255, 255, 0.72);
  --srl-head: #FFFFFF;
  --srl-accent: var(--srh-accent, #2CE5A7);
  --srl-body: clamp(17px, 0.95rem + 0.35vw, 20px);
  --srl-lead: clamp(18px, 1rem + 0.5vw, 22px);
  --srl-small: var(--srl-body);
  --srl-measure: 46rem;
  --srl-anchor-gap: 128px;
}

/*
 * No scroll snap. scene-kit.css (loaded for its type tokens) sets
 * scroll-snap-type: y mandatory on html for touch screens up to 768px, for
 * pages made of full-screen scenes. A document has no snap stops, and with the
 * mandatory snap a phone scrolled straight back to the top: measured on LOCAL,
 * scrollTo(0, 3000) at 390 landed on 0. A document scrolls freely.
 */
html:has(body.sr-legal-page) {
  scroll-snap-type: none;
}

/* ---- v2.3: the ground ---------------------------------------------------- */

body.sr-legal-page:not(.sr-legal-archive) .srh-ground {
  background: linear-gradient(180deg, #050A20 0%, #0A1A4A 45%, #1A1040 80%, #06142E 100%);
}

@supports (animation-timeline: scroll()) {
  body.sr-legal-page:not(.sr-legal-archive) .srh-ground {
    background: #050A20;
    animation: srl-journey linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes srl-journey {
  0%   { background-color: #050A20; }
  30%  { background-color: #0A1A4A; }
  60%  { background-color: #1A1040; }
  85%  { background-color: #0B2240; }
  100% { background-color: #06142E; }
}

body.sr-legal-page .sr-legal-main {
  background: transparent;
}

/* ---- the reading column ------------------------------------------------- */

body.sr-legal-page .sr-legal-wrap {
  max-width: var(--srl-measure);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 112px) 20px clamp(64px, 8vw, 128px);
  box-sizing: content-box;
  font-family: var(--font-ui);
  overflow-wrap: anywhere;
}

body.sr-legal-page .sr-legal-wrap p,
body.sr-legal-page .sr-legal-wrap li {
  margin: 0 0 1em;
  color: var(--srl-ink);
  font-size: var(--srl-body);
  line-height: 1.65;
}

body.sr-legal-page .sr-legal-wrap strong {
  color: var(--srl-head);
  font-weight: 600;
}

body.sr-legal-page .sr-legal-wrap a {
  color: var(--srl-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.sr-legal-page .sr-legal-wrap a:focus-visible {
  outline: 2px solid var(--srl-accent);
  outline-offset: 3px;
}

/* ---- the notice: the first thing on the page ---------------------------- */

body.sr-legal-page .sr-legal-notice {
  margin: 0 0 clamp(72px, 9vw, 136px);
}

body.sr-legal-page .sr-legal-notice__title {
  margin: 0 0 20px;
  color: var(--srl-accent);
  font-family: var(--font-ui);
  font-size: var(--srk-display-s, clamp(26px, 3.2vw, 40px));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

body.sr-legal-page .sr-legal-notice p,
body.sr-legal-page .sr-legal-notice li {
  color: var(--srl-head);
  font-size: var(--srl-lead);
  line-height: 1.6;
}

body.sr-legal-page .sr-legal-notice .sr-legal-notice__lead {
  margin: 28px 0 12px;
  font-weight: 600;
}

body.sr-legal-page .sr-legal-notice__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

/* One even mark per item: a short accent bar on the first line's centre. */
body.sr-legal-page .sr-legal-notice__list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 30px;
}

body.sr-legal-page .sr-legal-notice__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 1px);
  width: 14px;
  height: 2px;
  background: var(--srl-accent);
}

body.sr-legal-page .sr-legal-notice .sr-legal-notice__archive {
  margin-top: 8px;
}

body.sr-legal-page .sr-legal-notice__archive a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ---- the terms: title block ---------------------------------------------- */

body.sr-legal-page .sr-legal .sr-legal__entity {
  margin: 0 0 16px;
  text-align: center;
  color: var(--srl-accent);
  font-size: var(--srl-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.sr-legal-page .sr-legal h1 {
  margin: 0 auto 20px;
  max-width: 18ch;
  text-align: center;
  color: var(--srl-head);
  font-family: var(--font-ui);
  font-size: var(--srk-display-m, clamp(32px, 4.6vw, 62px));
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.sr-legal-page .sr-legal .sr-legal__meta {
  margin: 0 auto clamp(40px, 5vw, 64px);
  max-width: 40rem;
  text-align: center;
  color: var(--srl-ink-soft);
  font-size: var(--srl-small);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---- contents: the twenty sections, links on the background ------------- */

body.sr-legal-page .sr-legal .sr-legal__toc {
  margin: 0 0 clamp(48px, 6vw, 80px);
}

body.sr-legal-page .sr-legal .sr-legal__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}

@media (min-width: 768px) {
  body.sr-legal-page .sr-legal .sr-legal__toc ol {
    columns: 2;
    column-gap: 48px;
  }
}

body.sr-legal-page .sr-legal .sr-legal__toc li {
  margin: 0;
  break-inside: avoid;
}

body.sr-legal-page .sr-legal .sr-legal__toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--srl-ink);
  font-size: var(--srl-small);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

body.sr-legal-page .sr-legal .sr-legal__toc a:hover,
body.sr-legal-page .sr-legal .sr-legal__toc a:focus-visible {
  color: var(--srl-accent);
  text-decoration: underline;
}

/* ---- section and clause headings, in the site's type scale -------------- */

body.sr-legal-page .sr-legal h2 {
  margin: clamp(56px, 6vw, 88px) 0 24px;
  color: var(--srl-head);
  font-family: var(--font-ui);
  font-size: var(--srk-display-s, clamp(26px, 3.2vw, 40px));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  scroll-margin-top: var(--srl-anchor-gap);
}

body.sr-legal-page .sr-legal h3 {
  margin: 36px 0 12px;
  color: var(--srl-head);
  font-family: var(--font-ui);
  font-size: clamp(19px, 1rem + 0.45vw, 23px);
  font-weight: 600;
  line-height: 1.3;
}

body.sr-legal-page .sr-legal .sr-legal__item {
  padding-left: clamp(16px, 2.5vw, 28px);
}

body.sr-legal-page .sr-legal .sr-legal__footer {
  margin-top: clamp(56px, 6vw, 88px);
  text-align: center;
  color: var(--srl-ink-soft);
  font-size: var(--srl-small);
  white-space: pre-wrap;
}

/* ---- the ?version=2.2 archive: a light journey ---------------------------- */

body.sr-legal-archive {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF2FC 40%, #F3EFFA 75%, #FFFFFF 100%);
}

body.sr-legal-archive .sr-legal-archive__wrap {
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px);
}

body.sr-legal-archive .sr-legal-archive__line {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  color: var(--sr-ink, #0A0D31);
  font-family: var(--font-ui);
  font-size: var(--srl-body);
  font-weight: 600;
  line-height: 1.5;
}
