.terms-page {
  background: var(--color-graphite-900);
}

.terms-page a:focus-visible,
.terms-page button:focus-visible {
  outline: 2px solid var(--color-signal-white);
  outline-offset: 3px;
}

.terms-hero {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  padding-block: clamp(6rem, 10vw, 8rem);
  border-block-end: var(--border-copper);
  background:
    radial-gradient(circle at 84% 40%, rgb(30 102 103 / 32%), transparent 34%),
    linear-gradient(118deg, rgb(17 19 22 / 96%), rgb(17 19 22 / 82%)),
    repeating-linear-gradient(0deg, rgb(232 223 208 / 3%) 0 1px, transparent 1px 9px),
    var(--color-graphite-950);
}

.terms-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-oxidised-copper-500), transparent 62%);
  content: "";
}

.terms-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: center;
}

.terms-hero__panel {
  grid-column: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding: clamp(1.5rem, 3vw, 3rem);
  border: var(--border-default);
  border-inline-start-color: var(--color-border-strong);
  border-radius: var(--radius-1);
  background: rgb(24 27 31 / 84%);
  box-shadow: var(--shadow-deep);
}

.terms-hero__panel > * {
  min-width: 0;
  margin: 0;
}

.terms-hero__panel h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5.7vw, 4.5rem);
  line-height: 0.97;
}

.terms-hero__lead {
  max-width: 66ch;
  color: var(--color-pale-sand-100);
  font-size: var(--text-lead);
  line-height: var(--line-lead);
}

.terms-hero__link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.terms-hero__material {
  grid-column: 8 / span 5;
  min-width: 0;
  min-height: 15rem;
  border-inline-start: 1px solid rgb(232 223 208 / 10%);
}

.terms-text-link {
  color: var(--color-pale-sand-100);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration-color: var(--color-oxidised-copper-500);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.terms-text-link:hover {
  color: var(--color-signal-white);
  text-decoration-color: var(--color-electric-violet-500);
}

.terms-document {
  padding-block-start: var(--space-9);
}

.terms-document__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.terms-document__sidebar {
  grid-column: 1 / span 3;
  min-width: 0;
}

.terms-document__content {
  grid-column: 4 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.terms-toc {
  position: sticky;
  top: calc(var(--space-8) + var(--space-3));
  min-width: 0;
  padding-inline-end: var(--space-4);
}

.terms-toc > .technical-label {
  margin-block-end: var(--space-4);
}

.terms-toc ol,
.terms-toc-mobile ol {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms-toc li,
.terms-toc-mobile li {
  min-width: 0;
}

.terms-toc a,
.terms-toc-mobile a {
  display: block;
  min-height: 2.75rem;
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  border-inline-start: 1px solid var(--color-border);
  color: var(--color-pale-sand-300);
  font-family: var(--font-heading);
  font-size: var(--text-technical);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: var(--line-technical);
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.terms-toc a:hover,
.terms-toc a[aria-current="true"] {
  border-inline-start-color: var(--color-oxidised-copper-500);
  background: linear-gradient(90deg, rgb(167 101 78 / 13%), transparent);
  color: var(--color-signal-white);
}

.terms-toc-mobile {
  display: none;
}

.terms-toc-mobile__toggle {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: var(--border-copper);
  border-radius: var(--radius-1);
  background: var(--color-graphite-800);
  color: var(--color-pale-sand-100);
  font-family: var(--font-heading);
  font-weight: 650;
  text-align: start;
}

.terms-toc-mobile__toggle span {
  min-width: 0;
}

.terms-toc-mobile__panel {
  margin-block-start: var(--space-2);
  padding: var(--space-3);
  border: var(--border-default);
  background: var(--color-graphite-950);
}

.terms-chapter,
.terms-document-note {
  scroll-margin-top: 5.5rem;
  min-width: 0;
}

.terms-chapter {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.terms-chapter__heading {
  min-width: 0;
}

.terms-chapter__heading > * {
  min-width: 0;
}

.terms-chapter__heading .technical-label {
  margin-block-end: var(--space-3);
}

.terms-chapter__heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--text-h3);
}

.terms-chapter--light {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid rgb(201 189 170 / 44%);
  border-radius: var(--radius-1);
  background:
    repeating-linear-gradient(90deg, rgb(17 19 22 / 3%) 0 1px, transparent 1px 12px),
    var(--color-pale-sand-100);
  color: var(--color-graphite-950);
}

.terms-chapter--light :is(h2, h3, p) {
  color: var(--color-graphite-950);
}

.terms-chapter--light .technical-label {
  color: #5f5549;
}

.terms-chapter--light a {
  color: var(--color-graphite-950);
}

.terms-scope__intro,
.terms-scope__formats {
  min-width: 0;
}

.terms-scope__intro h3,
.terms-scope__formats h3 {
  max-width: 28ch;
}

.terms-scope__intro > p:not(.terms-scope__lead) {
  max-width: 64ch;
}

.terms-scope__lead {
  max-width: 62ch;
  font-size: var(--text-lead);
  font-weight: 600;
  line-height: var(--line-lead);
}

.terms-scope__formats > p {
  max-width: 64ch;
}

.terms-link-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.terms-link-row > * {
  min-width: 0;
}

.terms-note {
  min-width: 0;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-5);
  border-inline-start: 2px solid var(--color-oxidised-copper-500);
  background: rgb(17 19 22 / 7%);
}

.terms-note__icon {
  position: relative;
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.75rem;
  border: 1px solid currentColor;
}

.terms-note__icon::after {
  position: absolute;
  inset: 0.45rem 0.3rem auto;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0.35rem 0 currentColor, 0 0.7rem 0 currentColor;
  content: "";
}

.terms-note > div {
  min-width: 0;
}

.terms-note h3 {
  max-width: 28ch;
}

.terms-note p {
  max-width: 60ch;
  margin-bottom: 0;
}

.terms-process {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: var(--space-3);
  align-items: stretch;
}

.terms-process__step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-height: 100%;
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-1);
  background: var(--color-graphite-800);
  box-shadow: var(--shadow-panel);
}

.terms-process__step > * {
  min-width: 0;
  margin: 0;
}

.terms-process__step h3 {
  font-size: var(--text-h4);
}

.terms-process__step p:last-child {
  color: var(--color-pale-sand-300);
}

.terms-process__step--two {
  border-color: var(--color-border-strong);
  background: linear-gradient(145deg, var(--color-graphite-800), var(--color-graphite-950));
}

.terms-process__step--three {
  border-inline-start-color: var(--color-electric-violet-500);
}

.terms-process__step:focus-within {
  border-color: var(--color-oxidised-copper-400);
}

.terms-production__wide {
  min-width: 0;
}

.terms-production__wide h3,
.terms-production__wide > p:not(.terms-production__lines) {
  max-width: 66ch;
}

.terms-production__lines {
  max-width: 72ch;
  color: var(--color-pale-sand-300);
  font-family: var(--font-heading);
  font-size: var(--text-technical);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.terms-production__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.terms-production__panel {
  min-width: 0;
  padding: var(--space-5);
  border: var(--border-default);
  border-radius: var(--radius-1);
  background: var(--color-graphite-800);
}

.terms-production__panel h3,
.terms-production__panel p {
  max-width: 52ch;
}

.terms-production__panel--violet {
  border-inline-start-color: var(--color-electric-violet-500);
  background: linear-gradient(145deg, var(--color-graphite-950), var(--color-graphite-800));
}

.terms-production__wide--closing {
  padding-block-start: var(--space-5);
  border-block-start: var(--border-copper);
}

.terms-venue {
  min-width: 0;
}

.terms-chapter--venue {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: var(--border-default);
  border-radius: var(--radius-1);
  background:
    linear-gradient(135deg, rgb(18 61 63 / 86%), rgb(18 61 63 / 52%)),
    var(--color-graphite-950);
}

.terms-venue__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: var(--space-4);
  align-items: stretch;
}

.terms-venue__space,
.terms-venue__partners,
.terms-venue__rule {
  min-width: 0;
}

.terms-venue__space {
  padding: var(--space-5);
  border: var(--border-default);
  background: rgb(17 19 22 / 44%);
}

.terms-venue__space h3,
.terms-venue__space p:not(.technical-label) {
  max-width: 62ch;
}

.terms-venue__space .technical-label {
  margin-block-end: var(--space-4);
}

.terms-venue__partners {
  padding: var(--space-5);
  border: var(--border-default);
  background: rgb(17 19 22 / 66%);
}

.terms-venue__partners h3,
.terms-venue__partners p {
  max-width: 48ch;
}

.terms-venue__rule {
  padding-block-start: var(--space-5);
  border-block-start: var(--border-copper);
}

.terms-venue__rule h3,
.terms-venue__rule p {
  max-width: 64ch;
}

.terms-rights__input,
.terms-rights__creative,
.terms-rights__documentation {
  min-width: 0;
}

.terms-rights__input .technical-label {
  margin-block-end: var(--space-3);
}

.terms-rights__input h3,
.terms-rights__input p {
  max-width: 64ch;
}

.terms-rights__creative {
  width: min(100% - clamp(1rem, 5vw, 5rem), 56ch);
  margin-inline-start: auto;
  padding: var(--space-5);
  border: var(--border-copper);
  border-radius: var(--radius-1);
  background: var(--color-graphite-800);
}

.terms-rights__creative h3,
.terms-rights__creative p {
  max-width: 56ch;
}

.terms-rights__documentation h3,
.terms-rights__documentation p {
  max-width: 60ch;
}

.terms-text-link--arrow {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: var(--space-2);
}

.terms-text-link--arrow::after {
  content: "→";
}

.terms-communication__intro,
.terms-communication__responsibility,
.terms-contact-cta {
  min-width: 0;
}

.terms-chapter--communication {
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: var(--border-default);
  border-radius: var(--radius-1);
  background: var(--color-deep-teal-800);
}

.terms-communication__intro h3,
.terms-communication__intro p {
  max-width: 66ch;
}

.terms-communication__responsibility {
  max-width: 56ch;
  padding: var(--space-5);
  border: var(--border-default);
  border-inline-start-color: var(--color-oxidised-copper-500);
  background: rgb(17 19 22 / 54%);
}

.terms-communication__responsibility .technical-label {
  margin-block-end: var(--space-3);
}

.terms-communication__responsibility h3,
.terms-communication__responsibility p {
  max-width: 56ch;
}

.terms-contact-cta {
  width: min(100%, 34rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: var(--border-copper);
  border-radius: var(--radius-1);
  background: var(--color-graphite-950);
  box-shadow: var(--shadow-panel);
}

.terms-contact-cta > * {
  min-width: 0;
  margin: 0;
}

.terms-contact-cta h3 {
  max-width: 22ch;
}

.terms-contact-cta p {
  max-width: 54ch;
}

.terms-contact-cta__button {
  min-height: 3rem;
}

.terms-document-note {
  padding-block: var(--space-6);
  border-block-start: var(--border-copper);
  background: var(--color-graphite-950);
}

.terms-document-note__content {
  width: min(100%, 66ch);
  min-width: 0;
}

.terms-document-note__content .technical-label {
  margin-block-end: var(--space-3);
}

.terms-document-note__content h2 {
  max-width: 28ch;
  font-size: var(--text-h4);
}

.terms-document-note__content p {
  max-width: 62ch;
  margin-bottom: 0;
}

@media (max-width: 74rem) {
  .terms-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-process__step--one,
  .terms-process__step--two {
    min-height: 100%;
  }

  .terms-process__step--three {
    grid-column: 1 / -1;
  }
}

@media (max-width: 68.6875rem) {
  .terms-document__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .terms-document__sidebar,
  .terms-document__content {
    grid-column: 1 / -1;
  }

  .terms-toc--desktop {
    display: none;
  }

  .terms-toc-mobile {
    display: block;
  }

  .terms-document__content {
    gap: var(--space-9);
  }
}

@media (max-width: 63.9375rem) {
  .terms-hero {
    min-height: auto;
    padding-block: var(--space-9);
  }

  .terms-hero__grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .terms-hero__panel {
    grid-column: 1 / span 6;
  }

  .terms-hero__material {
    grid-column: 7 / span 2;
    min-height: 100%;
  }

  .terms-venue__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  }
}

@media (max-width: 51.25rem) {
  .terms-hero__grid {
    grid-template-columns: 1fr;
  }

  .terms-hero__panel,
  .terms-hero__material {
    grid-column: 1;
  }

  .terms-hero__panel {
    max-width: 46rem;
  }

  .terms-hero__material {
    display: none;
  }

  .terms-process,
  .terms-production__pair,
  .terms-venue__top {
    grid-template-columns: 1fr;
  }

  .terms-process__step--three {
    grid-column: 1;
  }

  .terms-production__panel h3,
  .terms-production__panel p,
  .terms-venue__partners h3,
  .terms-venue__partners p {
    max-width: 64ch;
  }

  .terms-rights__creative {
    width: 100%;
    margin-inline-start: 0;
  }
}

@media (max-width: 47.9375rem) {
  .terms-hero {
    padding-block: var(--space-8);
  }

  .terms-hero__panel {
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .terms-hero__panel h1 {
    max-width: 9ch;
    font-size: clamp(2.5rem, 11vw, 3rem);
    line-height: 1;
  }

  .terms-hero__lead {
    font-size: var(--text-body);
    line-height: var(--line-body);
  }

  .terms-document {
    padding-block-start: var(--space-7);
  }

  .terms-document__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .terms-document__content {
    gap: var(--space-8);
  }

  .terms-chapter {
    gap: var(--space-5);
  }

  .terms-chapter__heading h2 {
    max-width: none;
    font-size: var(--text-h3);
  }

  .terms-chapter--light,
  .terms-chapter--venue,
  .terms-chapter--communication {
    padding: var(--space-5);
  }

  .terms-note {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .terms-process__step,
  .terms-production__panel,
  .terms-venue__space,
  .terms-venue__partners,
  .terms-rights__creative,
  .terms-communication__responsibility,
  .terms-contact-cta {
    padding: var(--space-4);
  }

  .terms-contact-cta {
    width: 100%;
  }

  .terms-contact-cta__button {
    width: 100%;
  }

  .terms-document-note {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-toc a {
    transition: none;
  }
}
