/* ============================================================
         1. DESIGN TOKENS — shared with the rest of the site
         Palette pulled from the logo; no pure white surfaces.
         ============================================================ */
            /* --------------------------------------------------------
         Local names mapped onto the shared design system in
         css/main.css. No colour, font or size is defined here —
         edit the --qw-* tokens in main.css to restyle the site.
         -------------------------------------------------------- */
      :root {
        --ease: var(--qw-ease-out);
        --navy: var(--qw-navy);
        --navy-2: var(--qw-navy-2);
        --navy-3: var(--qw-navy-3);
        --paper: var(--qw-paper);
        --paper-2: var(--qw-paper-2);
        --card: var(--qw-card);
        --ink: var(--qw-ink);
        --muted: var(--qw-muted);
        --muted-dark: var(--qw-muted-dark);
        --violet: var(--qw-violet);
        --indigo: var(--qw-indigo);
        --blue: var(--qw-blue);
        --sky: var(--qw-sky);
        --cyan: var(--qw-cyan);
        --mint: var(--qw-mint);
        --grad: var(--qw-grad);
        --line: var(--qw-line);
        --line-dark: var(--qw-line-dark);
        --shadow: var(--qw-shadow);
        --font-display: var(--qw-font-display);
        --font-ui: var(--qw-font-ui);
        --fs-hero: var(--qw-fs-hero);
        --fs-h2: var(--qw-fs-h2);
        --fs-h3: var(--qw-fs-h3);
        --fs-lead: var(--qw-fs-lead);
        --pad-section: var(--qw-pad-section);
        --container: var(--qw-container);
        --gutter: var(--qw-gutter);
        --ease-out: var(--qw-ease-out);
        --ease-inout: var(--qw-ease-io);
      }

      /* ============================================================
         2. RESET & BASE
         ============================================================ */
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
      }
      body {
        font-family: var(--font-ui);
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--ink);
        background: var(--paper);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }
      img,
      video,
      svg {
        display: block;
        max-width: 100%;
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      :focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px;
        border-radius: 2px;
      }

      /* ============================================================
         3. TYPOGRAPHY
         ============================================================ */
      h1,
      h2,
      h3 {
        font-family: var(--font-display);
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.02em;
      }
      p {
        max-width: 66ch;
      }
      .grad-text {
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      /* small labels (kept sentence-case, never all-caps) with a gradient tick */
      .eyebrow {
        display: inline-block;
        font-family: var(--font-ui);
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--qw-blue-text);
        margin-bottom: 0.9rem;
        padding-left: 1.7rem;
        position: relative;
      }
      .eyebrow::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 1.2rem;
        height: 2px;
        background: var(--grad);
        transform: translateY(-50%);
      }

      /* ============================================================
         4. LAYOUT UTILITIES
         ============================================================ */
      .container {
        width: 100%;
        max-width: var(--container);
        margin-inline: auto;
        padding-inline: var(--gutter);
      }
      .section {
        position: relative;
        padding-block: var(--pad-section);
      }

      /* ============================================================
         5. BUTTONS
         ============================================================ */
      .button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.55em;
        padding: 0.95em 1.9em;
        font-family: var(--font-ui);
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        border: 0;
        border-radius: 100px;
        background: var(--grad);
        background-size: 180% 180%;
        background-position: 0% 50%;
        box-shadow: 0 8px 24px -12px rgba(66, 105, 253, 0.7);
        transition:
          background-position 0.6s var(--ease-out),
          transform 0.4s var(--ease-out),
          box-shadow 0.4s var(--ease-out);
      }
      .button:hover {
        background-position: 100% 50%;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px -12px rgba(66, 105, 253, 0.8);
      }
      .button__arrow {
        transition: transform 0.4s var(--ease-out);
      }
      .button:hover .button__arrow {
        transform: translateX(4px);
      }

      /* ============================================================
         6. CUSTOM CURSOR
         ============================================================ */
      .cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 1.5px solid var(--cyan);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition:
          width 0.28s var(--ease-out),
          height 0.28s var(--ease-out),
          background-color 0.28s var(--ease-out);
        will-change: transform;
      }
      .cursor.is-hover {
        width: 54px;
        height: 54px;
        background: rgba(63, 187, 231, 0.15);
        border-color: var(--mint);
      }
      @media (hover: none), (pointer: coarse) {
        .cursor {
          display: none;
        }
      }

      /* ============================================================
         16. REDUCED MOTION
         ============================================================ */
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.001ms !important;
        }
        [data-reveal] {
          opacity: 1 !important;
          transform: none !important;
        }
      }

      /* ============================================================
         LEGAL PROSE — shared long-form content layout (terms, etc.)
         ============================================================ */
      .legal {
        background: var(--paper);
      }

      /* ------------------------------------------------------------
         LEGAL HERO — compact dark document header: eyebrow, title,
         "last updated" meta. Same brand tokens as the rest of the
         site (navy/paper/grad) — this is a shorter sibling of
         who-we-are.html's .masthead, not a copy of it: no photo, no
         full-viewport height, left-aligned rather than centred.
         ------------------------------------------------------------ */
      .legal__hero {
        position: relative;
        overflow: hidden;
        padding-block: clamp(7rem, 15vw, 10rem) clamp(2.75rem, 5vw, 3.75rem);
        background: var(--navy);
        color: var(--paper);
      }
      .legal__hero::before {
        content: "";
        position: absolute;
        top: -35%;
        right: -10%;
        z-index: 0;
        width: min(50vw, 620px);
        height: min(50vw, 620px);
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(130, 62, 231, 0.32),
          transparent 68%
        );
        filter: blur(60px);
        pointer-events: none;
      }
      .legal__hero .container {
        position: relative;
        z-index: 1;
      }
      .legal__hero .eyebrow {
        color: var(--mint);
      }
      .legal__hero .eyebrow::before {
        background: var(--grad);
      }
      .legal__hero h1 {
        font-size: var(--qw-fs-title);
        color: var(--paper);
        margin: 0.9rem 0 1.15rem;
      }
      .legal__meta {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.92rem;
        color: var(--muted-dark);
      }
      .legal__meta svg {
        width: 16px;
        height: 16px;
        flex: none;
        color: var(--mint);
      }

      .legal__body {
        padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4rem, 8vw, 6rem);
        max-width: 900px;
        margin-inline: auto;
        padding-inline: var(--gutter);
      }
      .legal__body h1 {
        font-size: var(--qw-fs-title);
        margin-bottom: 2rem;
      }
      .legal__body h2 {
        font-size: clamp(1.25rem, 2vw, 1.6rem);
        margin-top: 2.6rem;
        margin-bottom: 0.9rem;
      }
      .legal__body > div:first-of-type h2 {
        margin-top: 0;
      }
      /* sub-heading inside a section, e.g. the four cookie categories —
         smaller than h2, sits close to the paragraph above it */
      .legal__body h3 {
        font-size: 1.05rem;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
      }
      .legal__body p {
        color: var(--ink);
        line-height: 1.75;
        margin-bottom: 1.1rem;
        max-width: none;
      }
      .legal__body i {
        color: var(--muted);
        display: block;
        margin-bottom: 2.2rem;
      }
      .legal__body ul {
        padding-left: 1.4rem;
        margin: 0 0 1.1rem;
      }
      .legal__body li {
        color: var(--ink);
        line-height: 1.65;
        margin-bottom: 0.4rem;
      }
      .legal__body a {
        color: var(--qw-blue-text);
        text-decoration: underline;
        text-underline-offset: 2px;
      }

      /* ============================================================
         LEGAL CONTACT — informational card, not a CTA. Appended to every
         split legal page (terms / privacy / cookie-policy) so each stands
         on its own without a shared "Company Information" section.
         ============================================================ */
      .legal__contact {
        margin-top: clamp(3rem, 6vw, 4.5rem);
        padding: clamp(1.75rem, 3vw, 2.25rem);
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--card);
      }
      .legal__contact h2 {
        margin-top: 0;
      }
      .legal__contact ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
      }
      .legal__contact li {
        margin-bottom: 0;
      }
