/* ============ TOKENS ============
   Same values as the rest of the site, duplicated here so this page stays
   self-contained and editing it can never affect other pages. */
:root {
  --red: #c23c1a;
  --blue: #1c1cb0;
  --black: #0e0e0e;
  --cream: #f2ede4;
  --white: #fbf9f5;

  --pad: clamp(1.5rem, 6vw, 5rem);

  --font-display: "Archivo Black", sans-serif;
  --font-body: "Archivo Expanded", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 0.92; }

/* ============ NAV (same as the rest of the site) ============ */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem var(--pad) 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
}

.nav__link { color: var(--black); opacity: 0.7; transition: opacity 0.15s ease; }
.nav__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav__link--current { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ============ LEGAL CONTENT ============ */
.legal {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.legal__title {
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.legal__meta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(14, 14, 14, 0.5);
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.legal__content { max-width: 42rem; }

.legal__content h2 {
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.75rem;
}

.legal__content h2:first-child { margin-top: 0; }

.legal__content h3 {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--red);
  text-transform: uppercase;
  margin: 1.5rem 0 0.6rem;
}

.legal__content p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--black);
  margin: 0 0 1rem;
}

.legal__content p:last-child,
.legal__content > *:last-child { margin-bottom: 0; }

.legal__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal__list li {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.legal__note {
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(14, 14, 14, 0.6);
}

.legal__form-field {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--black);
}

.legal__form-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--black);
}

/* ============ RUG DIVIDER (before footer) ============ */
.legal__rug {
  height: clamp(3rem, 7vw, 5rem);
  background-image: url("assets/carpet.jpg");
  background-size: cover;
  background-position: center;
}

/* ============ GLOBAL FOOTER ============
   The orange closing section shared by every page. Normal document flow
   only (no negative margin, no absolute/fixed positioning) so it always
   extends the page height rather than overlapping existing content. */
.site-footer {
  background: var(--red);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 4rem);
}

/* Footer brand: stays on the left, vertically centred against the
   footer columns (desktop/tablet only — mobile keeps its stacked layout). */
@media (min-width: 761px) {
  .site-footer__brand { align-self: center; }
}

/* Mobile: the brand moves to the far left; the rest of the stacked footer
   keeps its right alignment. Placed after the existing mobile rules so it
   wins over them. */
@media (max-width: 760px) {
  .site-footer .site-footer__brand { align-self: flex-start; align-items: flex-start; text-align: left; }
}


.site-footer__logo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.site-footer__tagline {
  margin: 0.5em 0 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}

.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.site-footer__heading {
  margin: 0;
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--black);
  text-transform: uppercase;
}

.site-footer__heading--link { transition: opacity 0.15s ease; }
.site-footer__heading--link:hover { opacity: 0.7; }

.site-footer__text {
  margin: 0.4em 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--black);
  text-transform: uppercase;
}

.site-footer__fineprint {
  width: 100%;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1.6;
  color: rgba(14, 14, 14, 0.55);
  letter-spacing: 0.01em;
}

@media (max-width: 760px) {
  .site-footer { flex-direction: column; align-items: flex-end; text-align: right; }
  .site-footer__cols { gap: 2rem 2.5rem; flex-direction: column; align-items: flex-end; }
  .site-footer__col { align-items: flex-end; }
  .site-footer__brand { align-items: flex-end; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 0.5rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.back-to-top svg { width: 1.15rem; height: 1.15rem; }

.back-to-top.is-visible {
  opacity: 0.9;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.back-to-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
}
