/* Terms-only mobile refinement. Load after the existing page styles.
   All legal text, anchors and desktop styles remain in their owning files. */
@media (max-width: 700px) {
  body:has(main.terms) {
    background: #020304;
    color: #dedee2;
  }

  body:has(main.terms) .site-header {
    background: #020304;
    padding-inline: 12px;
  }

  body:has(main.terms) .site-header nav {
    width: 100%;
    justify-content: space-evenly;
    gap: 8px;
  }

  .terms.wrap {
    width: calc(100% - 32px);
    padding-block: 16px 8px;
    text-align: center;
  }

  .terms > .text-link {
    min-height: 36px;
    padding-block: 4px;
    border: 0;
    color: #b8bac0;
    font-size: 14px;
  }

  .terms > .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px auto 10px;
    color: #e0bc85;
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.4;
    font-size: 12px;
    letter-spacing: .1em;
  }

  .terms > .eyebrow::before,
  .terms > .eyebrow::after {
    content: '';
    width: 28px;
    height: 1px;
    background: rgb(224 188 133 / 20%);
  }

  .terms h1 {
    margin: 0;
    font-family: Playfair, Georgia, serif;
    font-size: clamp(28px, 8.1vw, 42px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .terms > h1 + p {
    margin-top: 10px;
    color: #b8bac0;
    font-size: 14px;
    line-height: 1.5;
  }

  .terms-layout {
    margin-top: 24px;
  }

  .terms-layout > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    margin-bottom: 28px;
    padding: 0 12px;
    border-block: 1px solid rgb(224 188 133 / 20%);
    border-radius: 10px;
    background: #0d0f11;
    color: #dedee2;
  }

  .terms-layout > nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding-block: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .terms-layout > nav a:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .terms-layout > nav a:hover,
  .terms-layout > nav a:focus-visible {
    color: #e0bc85;
  }

  .terms a:focus-visible,
  body:has(main.terms) .site-footer a:focus-visible {
    outline: 2px solid #e0bc85;
    outline-offset: 3px;
    border-radius: 3px;
  }

  .terms-content section {
    scroll-margin-top: 48px;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid rgb(224 188 133 / 20%);
  }

  .terms-content section:first-child {
    padding-top: 0;
  }

  .terms-content section:last-child {
    border-bottom: 0;
  }

  .terms-content h2 {
    max-width: 28ch;
    margin: 0 auto 16px;
    color: #e0bc85;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-wrap: balance;
  }

  .terms-content p {
    max-width: 44ch;
    margin: 16px auto 0;
    color: #dedee2;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  .terms-content h2 + p {
    margin-top: 0;
  }

  body:has(main.terms) .site-footer {
    width: calc(100% - 32px);
    column-gap: 16px;
    color: #b8bac0;
  }
}
