/* Shared styles for Alibee LLC legal pages (privacy.html, terms.html).
   Mirrors the design tokens and chrome used in index.html. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/InstrumentSans-Variable.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/InstrumentSans-Italic-Variable.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/InstrumentSerif-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/InstrumentSerif-Italic.ttf') format('truetype');
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F5F5F2;
  --surface:     #FFFFFF;
  --ink:         #1B1E1C;
  --ink2:        #50554F;
  --ink3:        #878B84;
  --hairline:    #E3E3DC;
  --chip-border: #D9D9D1;
  --btn-hover:   #3A3E3A;

  --regularish:  #6E7A2E;
  --pare:        #2E6470;
  --bough:       #35705F;
  --rust:        #A4593B;

  --radius-btn:  10px;
  --radius-card: 14px;
  --radius-pill: 999px;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, sans-serif;

  --max-w: 1120px;
  --px: clamp(20px, 5vw, 60px);
  --content-w: 760px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,242,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { display: block; flex: 0 0 auto; }
.nav-wordmark {
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink2);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Legal content ---------- */
.legal-main { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }

.legal-header { max-width: var(--content-w); margin-bottom: 40px; }
.label-caps {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink3);
}
.legal-title {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 16px;
}
.legal-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.legal-meta { font-size: 14px; color: var(--ink3); }

.legal-content { max-width: var(--content-w); }
.legal-content .intro {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.66;
  margin-bottom: 8px;
}
.legal-content h2 {
  font-family: var(--sans);
  font-size: clamp(23px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
  margin: 38px 0 12px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 6px;
}
.legal-content p { color: var(--ink2); margin: 0 0 14px; }
.legal-content ul { color: var(--ink2); margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin: 0 0 7px; }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--ink2); }
.legal-content strong { color: var(--ink); }

.legal-divider { height: 1px; background: var(--hairline); border: 0; margin: 34px 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  padding: 32px var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo-row { display: flex; align-items: center; gap: 9px; }
.footer-logo-row .brand-mark { opacity: 0.85; }
.footer-wordmark { font-size: 16px; font-weight: 600; color: rgba(245,245,242,0.75); }
.footer-copy { font-size: 12.5px; color: rgba(245,245,242,0.4); }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: rgba(245,245,242,0.5); transition: color 0.15s; }
.footer-links a:hover { color: rgba(245,245,242,0.9); }

@media (max-width: 640px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-wordmark { font-size: 17px; }
  footer { justify-content: center; text-align: center; }
}
