/* =========================================================================
   makropulo — static port
   Design tokens ported verbatim from the Lovable/Tailwind v4 source
   (src/styles.css). Only tokens actually used by the shipped UI are
   carried over — the unused shadcn/ui + dark-mode boilerplate from the
   source theme was dropped (no dark-mode toggle exists in the source app).
   ========================================================================= */

:root {
  --bg: #F4F3F1;
  --bg-elevated: #FFFFFF;
  --bg-dark: #151A1D;
  --bg-subtle: #EAE8E3;
  --text-primary: #151A1D;
  --text-secondary: #3D3C39;
  --text-tertiary: #4A4945;
  --text-inverse: #F4F3F1;
  --accent-brass: #C8A64C;
  --accent-muted: #C8A64C1A;
  --accent-brass-text: #8A6F1F;

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* -------------------------------------------------------------------------
   Reset (equivalent to the subset of Tailwind v4 preflight that affects
   this page's elements: box-sizing, margin/padding zero, list markers
   removed, anchors unstyled by default, replaced-element sizing).
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

b, strong {
  font-weight: bolder;
}

ol, ul, menu {
  list-style: none;
}

img, svg, video {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button {
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

/* -------------------------------------------------------------------------
   Fonts — self-hosted, latin subset, font-display: swap.
   Source only loads the 400/500/600/700 normal Inter cuts and the 400
   normal Instrument Serif cut (no italic file is imported anywhere in
   src/styles.css), so every <em style="font-style:italic"> in the source
   renders as a browser-synthesized (faux) italic. Replicated as-is: no
   italic woff2 is downloaded here either.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}

@keyframes mp-overlay-item {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------------- */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site__main {
  flex: 1;
}

/* -------------------------------------------------------------------------
   Header / primary nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.site-header.is-scrolled {
  background-color: rgba(244, 243, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header__inner {
  max-width: 1200px;
  height: 72px;
  padding: 0 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-brass-text);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.01em;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  justify-content: flex-end;
}
.nav-link {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}
.nav-link:hover {
  color: var(--accent-brass-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-brass-text);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms ease, transform 100ms ease;
}
.nav-cta:hover { background-color: #2F3336; }
.nav-cta:active { transform: scale(0.98); }
.nav-hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.nav-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .nav-hamburger { display: inline-flex; }
}

/* -------------------------------------------------------------------------
   Mobile nav overlay
   ------------------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: var(--bg);
  animation: mp-overlay-item 200ms ease forwards;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.mobile-nav-overlay[hidden] { display: none; }
.mobile-nav-overlay__top {
  display: flex;
  justify-content: flex-end;
}
.mobile-nav-overlay__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 36px;
  height: 36px;
}
.mobile-nav-overlay__close span {
  position: absolute;
  left: 8px;
  top: 17px;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 300ms ease;
}
.mobile-nav-overlay__close span:first-child { transform: rotate(45deg); }
.mobile-nav-overlay__close span:last-child { transform: rotate(-45deg); }
.mobile-nav-overlay__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav-overlay__link {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0;
  animation: mp-overlay-item 300ms ease forwards;
}
.mobile-nav-overlay__link:nth-child(1) { animation-delay: 100ms; }
.mobile-nav-overlay__link:nth-child(2) { animation-delay: 150ms; }
.mobile-nav-overlay__link:nth-child(3) { animation-delay: 200ms; }
.mobile-nav-overlay__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--bg-dark);
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  width: 100%;
  opacity: 0;
  animation: mp-overlay-item 300ms ease forwards;
  animation-delay: 200ms;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}
.hero__kicker {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.hero__kicker-dot {
  color: var(--accent-brass-text);
  font-size: 12px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 168px;
  line-height: 0.92;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.04em;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-brass-text);
}
.hero__subtitle {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 40px;
  max-width: 560px;
}
.hero__stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  border-top: 1px solid var(--bg-subtle);
  padding-top: 40px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--text-primary);
}
.hero__stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
@media (max-width: 1100px) {
  .hero__title { font-size: 112px; }
}
@media (max-width: 768px) {
  .hero { padding: 48px 20px 32px; min-height: auto; }
  .hero__title { font-size: 56px; line-height: 0.96; }
  .hero__subtitle { font-size: 17px; line-height: 1.6; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 64px; }
  .hero__stat-value { font-size: 40px; }
}

/* -------------------------------------------------------------------------
   Section label (shared "MISSION LOG ↘" style eyebrow)
   ------------------------------------------------------------------------- */
.section-label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-label__arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   Work
   ------------------------------------------------------------------------- */
.work {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 160px;
}
.work__title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.95;
  font-weight: 400;
  color: var(--text-primary);
  margin: 32px 0 0;
  letter-spacing: -0.03em;
  max-width: 900px;
}
.work__title em {
  font-style: italic;
  color: var(--accent-brass-text);
}
.work__grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .work__grid { grid-template-columns: 1fr; }
  .work { margin-top: 96px; padding: 0 20px; }
  .work__title { font-size: 44px; }
}

.project-card {
  grid-column: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-subtle);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  min-height: 240px;
}
.project-card--featured { grid-column: 1 / -1; }
.project-card--highlight { border-color: var(--accent-brass); }
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
a.project-card:hover .project-card__arrow {
  transform: translate(3px, -3px);
  color: var(--text-primary);
}
.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.project-card__index {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.project-card__arrow {
  font-size: 16px;
  color: var(--text-tertiary);
  transition: transform 200ms ease, color 200ms ease;
  line-height: 1;
}
.project-monogram {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-muted);
  color: var(--accent-brass-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}
.project-card__name {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.project-card--highlight .project-card__name { color: var(--accent-brass-text); }
.project-card__byline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.project-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 16px;
  flex: 1;
}
.project-card__footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.project-card__group {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
}
.project-card__sep { color: var(--text-tertiary); }
.project-card__url {
  font-size: 12px;
  color: var(--accent-brass-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.project-card__soon {
  color: var(--accent-brass-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .project-card { padding: 24px; }
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 160px;
}
.about__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: stretch;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about__title {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}
.about__title em {
  font-style: italic;
  color: var(--accent-brass-text);
}
.about__paragraph {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
.about__portrait {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
@media (max-width: 768px) {
  .about { margin-top: 96px; padding: 0 20px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__title { font-size: 48px; }
}

/* -------------------------------------------------------------------------
   Let's talk
   ------------------------------------------------------------------------- */
.lets-talk {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  margin-top: 160px;
  margin-bottom: 160px;
}
.lets-talk__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 96px;
  align-items: center;
  margin-top: 48px;
}
.lets-talk__title {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.lets-talk__email {
  display: block;
  margin-top: 8px;
  color: var(--accent-brass-text);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
@media (max-width: 768px) {
  .lets-talk { margin-top: 96px; margin-bottom: 96px; padding: 0 20px; }
  .lets-talk__grid { grid-template-columns: 1fr; gap: 40px; }
  .lets-talk__title { font-size: 36px; }
}

/* Contact card — replaces the source's Supabase-backed <ContactForm>.
   Reuses the form's own former "success" card shell + copy, with the
   input/checkbox/submit swapped for a single mailto CTA styled like the
   form's original submit button. */
.contact-card {
  background: var(--bg-elevated);
  border-radius: 32px;
  padding: 40px;
  max-width: 480px;
  border: 1px solid #E8E7E4;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.06);
}
.contact-card__text {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  font-weight: 500;
}
.contact-card__cta {
  margin-top: 32px;
  width: 100%;
  background: var(--bg-dark);
  color: #FFFFFF;
  border: 0;
  border-radius: 12px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-card__cta:hover { background-color: var(--accent-brass); }
.contact-card__cta:hover .contact-card__cta-arrow { transform: translateX(3px); }
.contact-card__cta-arrow { transition: transform 200ms ease; }
@media (max-width: 768px) {
  .contact-card { padding: 28px; border-radius: 24px; }
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 64px 40px 32px;
}
.site-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-brass);
  letter-spacing: -0.01em;
}
.site-footer__name {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer__phone-wrap {
  margin-top: 4px;
  font-size: 15px;
}
.site-footer__phone {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: rgba(255, 255, 255, 0.75);
}
.site-footer__phone:hover { color: var(--accent-brass); }
.site-footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.site-footer__social {
  color: rgba(255, 255, 255, 0.75);
  transition: color 150ms ease;
  display: inline-flex;
}
.site-footer__social:hover { color: var(--accent-brass); }
.site-footer__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-brass);
  margin-bottom: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.site-footer__legal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.site-footer__link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 150ms ease;
}
.site-footer__link:hover {
  color: var(--accent-brass);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.site-footer__office {
  font-size: 15px;
  line-height: 1.7;
}
.site-footer__office-name {
  color: var(--text-inverse);
  font-weight: 500;
}
.site-footer__office-line { color: rgba(255, 255, 255, 0.75); }
.site-footer__bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__bottom-link {
  color: var(--text-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}
.site-footer__bottom-link:hover { color: var(--accent-brass); }
@media (max-width: 768px) {
  .site-footer { padding: 48px 20px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Cookie FAB (links to /cookies; hidden on the cookies page itself)
   ------------------------------------------------------------------------- */
.cookie-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: var(--accent-brass);
  color: var(--bg-dark, #1a1a1a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 80;
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}
.cookie-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.14);
}
@media (max-width: 640px) {
  .cookie-fab { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}

/* -------------------------------------------------------------------------
   Legal pages (Privacy / Cookies) — shared styles
   ------------------------------------------------------------------------- */
.legal {
  max-width: 768px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  color: var(--text-primary);
  line-height: 1.6;
}
@media (min-width: 768px) {
  .legal { padding-top: 96px; }
}
.legal__back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}
.legal__back:hover { color: var(--text-primary); }
.legal__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E7E4;
}
.legal__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  margin: 0 0 12px;
  font-family: var(--font-mono);
}
.legal__title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .legal__title { font-size: 56px; }
}
.legal__stamp {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  font-family: var(--font-mono);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--text-primary);
}
.legal__section { margin-bottom: 48px; }
.legal p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.legal p:last-child { margin-bottom: 0; }
.legal strong { font-weight: 600; color: var(--text-primary); }
.legal em { font-style: italic; }
.legal a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-brass);
  text-underline-offset: 4px;
}
.legal ol, .legal ul {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-secondary);
}
.legal ol li, .legal ul li { margin-bottom: 8px; }

.legal-card {
  border: 1px solid #E8E7E4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
  margin-top: 24px;
}
.legal-card__head {
  background: #F9F8F6;
  padding: 16px 20px;
  border-bottom: 1px solid #E8E7E4;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: baseline;
}
.legal-card__eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin: 0 0 4px;
  font-family: var(--font-mono);
}
.legal-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.legal-card__body { padding: 16px 20px; }
.legal-card__blurb {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  border-bottom: 1px solid #E8E7E4;
}
.legal-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-brass-text);
  background: var(--accent-muted);
  border: 1px solid var(--accent-brass);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-mono);
}

.legal-table-wrap { overflow-x: auto; }
.legal-table-wrap--framed {
  border: 1px solid #E8E7E4;
  border-radius: 12px;
}
.legal table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal thead tr { background: #F9F8F6; border-bottom: 1px solid #E8E7E4; }
.legal th {
  text-align: left;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 12px 20px;
  font-family: var(--font-mono);
}
.legal td {
  padding: 16px 20px;
  vertical-align: top;
  color: var(--text-secondary);
  border-bottom: 1px solid #F2F1EE;
  line-height: 1.55;
}
.legal tbody tr:last-child td { border-bottom: 0; }
.legal-name { font-weight: 600; color: var(--text-primary); }
.legal-name-mono { font-family: var(--font-mono); color: var(--text-primary); }

.legal-footnote {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-family: var(--font-mono);
}

.legal-browser-list { list-style: none; padding: 0; margin: 0; }
.legal-browser-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  flex-wrap: wrap;
}
.legal-browser-list .legal-arrow {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
}
.legal-browser-list .legal-browser-name {
  font-weight: 500;
  min-width: 160px;
  color: var(--text-primary);
}
.legal-browser-list a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--accent-brass);
  text-underline-offset: 4px;
  transition: color 150ms ease;
  word-break: break-all;
}
.legal-browser-list a:hover { color: var(--text-primary); }

.legal__contact {
  border-top: 1px solid #E8E7E4;
  padding-top: 32px;
  margin-bottom: 64px;
}
.legal__contact a {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-brass);
  text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Placeholder page (Terms)
   ------------------------------------------------------------------------- */
.placeholder {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 120px;
}
.placeholder__back {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 40px;
}
.placeholder__title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
}
.placeholder__body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-top: 24px;
}
.placeholder__email {
  color: var(--text-primary);
  text-decoration-color: var(--accent-brass);
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
   404
   ------------------------------------------------------------------------- */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.not-found__code {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  color: var(--accent-brass-text);
}
@media (max-width: 768px) {
  .not-found__code { font-size: 80px; }
}
.not-found__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 0;
}
.not-found__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 480px;
}
.not-found__links {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.not-found__link {
  border: 1px solid var(--bg-subtle);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-elevated);
  transition: background-color 150ms ease;
}
