/* Phantasmal LLC static pages (index.html, contact.html, and the legal
   pages terms.html, privacy.html, responsible-purchasing.html). Borrows the
   BagDrop brand's brass accent and serif type (the native apps' theme now;
   the web app that used to sit beside these pages is gone) but sits on a
   light cream ground and shares none of the admin console's layout. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Light by default: cream ground, espresso ink, brass accent. */
  --bg: #fbf7ef;
  --panel: #ffffff;
  --hairline: rgba(30,20,13,0.10);
  --brass-500: #c9a668;
  --brass-600: #a8853f;
  --brass-700: #86682c;
  --ink: #1e140d;
  --muted: #6b5a47;
  --muted-dim: #8f7d67;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brass-700); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass-500);
  box-shadow: 0 0 0 3px rgba(201,166,104,0.25);
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; }
main .wrap { padding-top: 56px; padding-bottom: 72px; }

h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

.section { margin-top: 56px; }
.section-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 16px;
}

.product {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(30,20,13,0.04);
}
.product-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(201,166,104,0.18);
  color: var(--brass-700);
}
.product-icon svg { width: 26px; height: 26px; stroke: currentColor; }
.product-body { flex: 1; min-width: 0; }
.product-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}
.product-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-card {
  margin-top: 36px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(30,20,13,0.04);
}
.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 8px;
}
.contact-email {
  font-family: var(--font-serif);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 500;
  word-break: break-all;
}

/* Legal pages (terms.html, privacy.html, responsible-purchasing.html).
   The documents are the attorney-reviewed text verbatim; this only lays
   them out. Capitalised passages stay capitalised (the conspicuousness
   is deliberate) and are set as .notice so they read as a block. */
.legal h1 { margin-bottom: 10px; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted-dim);
}
.doc-meta span { white-space: nowrap; }
.doc-entity {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.doc-nav {
  margin-top: 36px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.doc-nav .section-title { margin-bottom: 10px; }
.doc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
  line-height: 1.7;
}
.doc-nav li { break-inside: avoid; }
.doc-nav a { color: var(--muted); }
.doc-nav a:hover { color: var(--ink); }

.legal-body {
  margin-top: 40px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.65;
}
.legal-body p { margin: 0 0 16px; }
.legal-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 52px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 24px;
}
.legal-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  margin: 32px 0 10px;
  scroll-margin-top: 24px;
}
.legal-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal-body ul, .legal-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-body li { margin-bottom: 8px; }
.legal-body li > strong { color: var(--ink); }
.legal-body .notice {
  padding: 14px 18px;
  margin: 0 0 18px;
  background: rgba(201,166,104,0.10);
  border-left: 3px solid var(--brass-500);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.legal-body .notice + .notice { margin-top: -8px; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
  line-height: 1.5;
}
.legal-body th, .legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.legal-body th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.legal-body td:first-child { font-weight: 500; }
.legal-body address {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 16px;
}
.legal-body .foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  width: 100%;
}
.site-footer {
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted-dim);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.site-footer a { color: var(--muted); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

@media (max-width: 480px) {
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; }
  .brand { font-size: 20px; }
  .site-nav { gap: 16px; }
  .product { padding: 18px 16px; gap: 14px; }
  .doc-nav ol { columns: 1; }
  .legal-body { font-size: 15.5px; }
  .legal-body h2 { font-size: 24px; margin-top: 44px; }
  .legal-body table { font-size: 13.5px; }
  .legal-body th, .legal-body td { padding: 8px 8px 8px 0; }
}
