/* Policy pages (/terms, /privacy, /refunds, /shipping, /contact).
 *
 * Plain static documents, deliberately outside the React bundle: payment-gateway
 * reviewers and crawlers fetch these URLs without running JavaScript, so every word
 * has to be in the HTML itself.
 *
 * They wear the landing's language (components/landing-premium.css): white and stone,
 * Space Grotesk headings, the floating glass nav and the same footer. Like the landing
 * they are always light — the public site never follows the workspace theme. Keep the
 * values below in step with landing-premium.css; there is no shared build step to do
 * it for you. The heading face is self-hosted: a privacy policy should not load a
 * third-party font to tell you it respects your data. */

@font-face {
  font-family: 'Space Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('/fonts/space-grotesk-latin-wght.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #FCFCFA;
  --stone: #F1F2EE;
  --surface: #FFFFFF;
  --text: #262925;
  --muted: #62665F;
  --rule: #E1E3DE;
  --rule-strong: #BFC5BA;
  --link: #995522;
  --accent: #E8934A;
  --accent-hover: #F0A15A;
  --on-accent: #26190E;
  --display: 'Space Grotesk Variable', ui-sans-serif, system-ui, sans-serif;
  --glass: linear-gradient(145deg, #ffffffc7, #ffffff69);
  --glass-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #2629251a, 0 4px 12px #26292508, 0 16px 36px -24px #26292542;
  background: var(--bg);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:is(a, button):focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 20px; top: -90px; z-index: 150;
  padding: 14px 20px; border-radius: 12px; background: #fff; color: var(--text);
}
.skip:focus { top: 12px; }

.container { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }

/* The landing's floating pill: brand, pages, sign in, the trial. */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; height: 88px;
}
.site-nav::before {
  content: ''; position: absolute; inset: 0 0 auto; z-index: -1; height: 128%; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 52%, #FCFCFA00);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
/* The frosted material lives on ::before, not the pill: an element with backdrop-filter
   becomes the backdrop root of everything inside it, and the phone menu's panel is
   inside it — the panel's own glass could then only ever blur the pill. */
.nav-pill {
  position: relative; z-index: 0; display: flex; align-items: center; gap: 34px; height: 64px; padding-inline: 22px;
  border: 1px solid #ffffffeb; border-radius: 24px;
  box-shadow: var(--glass-shadow), 0 0 0 1px #2629250d;
}
.nav-pill::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.25); backdrop-filter: blur(24px) saturate(1.25);
}

.brand {
  display: inline-flex; flex-shrink: 0; align-items: baseline; color: var(--text); text-decoration: none;
  font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.brand .orbit { display: inline-flex; align-self: center; margin: 0 -0.08em; transform: translateY(0.05em); }
.brand .orbit svg { width: 24px; height: 24px; }
.brand .suffix { margin-left: 0.34em; color: color-mix(in srgb, currentColor 78%, transparent); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.nav-links a { padding-block: 15px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--link); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: box-shadow .18s ease, background-color .18s ease;
}
.pill svg { flex-shrink: 0; }
.pill-soft {
  color: var(--text); border: 1px solid #ffffffda;
  background: linear-gradient(155deg, #ffffffd6, #ffffff52 56%, #ffffff8a);
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px #26292521, 0 0 0 .75px #2629251c, 0 3px 6px #2629250d, 0 9px 18px -12px #26292555;
}
.pill-primary {
  color: var(--on-accent); border: 1px solid color-mix(in srgb, var(--accent) 60%, white);
  background: linear-gradient(175deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent) 52%, color-mix(in srgb, var(--accent) 95%, #995522));
  box-shadow: inset 0 2px 2px #ffffff60, inset 0 -2px 3px #99552226, 0 0 0 .75px #9955222b, 0 3px 6px #99552214, 0 10px 22px -13px #99552266;
}
.pill:hover { text-decoration: none; }
.pill-soft:hover { color: var(--link); }
.pill-primary:hover { background: var(--accent-hover); }
.pill:active { box-shadow: inset 0 2px 5px #26292533, 0 0 0 .75px #26292526; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone navigation without JavaScript: a <details> disclosure dressed as the landing's
   glass menu button and panel, so these pages match the React ones on a phone too. */
.nav-menu { display: none; }
.nav-menu summary {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid #ffffffeb; background: var(--glass); color: var(--text); cursor: pointer; list-style: none;
  box-shadow: var(--glass-shadow), 0 0 0 .75px #26292515;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .icon-close, .nav-menu[open] .icon-open { display: none; }
.nav-menu[open] .icon-close { display: block; }
.menu-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  display: flex; flex-direction: column; padding: 14px 24px;
  border: 1px solid #fff; border-radius: 24px; background: #ffffffc7;
  -webkit-backdrop-filter: blur(28px) saturate(1.25); backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: var(--glass-shadow), 0 0 0 1px #26292512, 0 8px 24px #2328240c;
}
.menu-panel a { display: flex; align-items: center; justify-content: space-between; padding-block: 15px; color: var(--text); font-size: 15px; text-decoration: none; }
.menu-panel a:hover { color: var(--link); }

/* The document itself: a reading measure inside the site's frame. */
main { width: min(760px, calc(100% - 40px)); margin-inline: auto; padding-block: 56px 96px; }

.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Sibling policies as one segmented control, the landing's style picker. */
.policy-nav {
  display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%;
  margin: 0 0 40px; padding: 5px; border: 1px solid #ffffffed; border-radius: 14px;
  background: var(--glass); box-shadow: var(--glass-shadow), 0 0 0 1px #26292510;
}
.policy-nav a {
  padding: 9px 16px; border-radius: 9px; color: var(--muted);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.policy-nav a:hover { color: var(--text); }
.policy-nav a[aria-current="page"] { color: var(--text); background: #fff; box-shadow: 0 2px 6px #493b2c12, 0 0 0 1px #2629250d; }

h1, h2, h3 { font-family: var(--display); color: var(--text); text-wrap: balance; }
h1 { margin: 0 0 12px; font-size: clamp(40px, 6vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.055em; }
h2 {
  margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--rule);
  font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.03em;
}
h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
p, ul, ol, dl { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 8px; }
li::marker { color: var(--link); }
strong { font-weight: 600; }

.updated { margin-bottom: 36px; color: var(--muted); font-size: 14px; }

.summary {
  margin: 0 0 8px; padding: 24px 28px;
  border: 1px solid var(--rule); border-radius: 18px; background: var(--surface);
}
.summary ul { padding-left: 20px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

/* No column gap: each row's rule has to run unbroken under label and value, so the
   space between them is the value's own padding. One line-height for both cells keeps
   the 14px label centred on the 16px value. */
.details {
  display: grid; grid-template-columns: max-content 1fr; gap: 0;
  padding: 6px 28px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface);
}
.details dt, .details dd { padding-block: 14px; border-bottom: 1px solid var(--rule); line-height: 28px; }
.details dt:last-of-type, .details dd:last-of-type { border-bottom: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; padding-left: 32px; overflow-wrap: anywhere; }

/* The landing's footer, column for column. */
.site-footer { padding-block: 56px 25px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.footer-brand p { margin: 17px 0 0; font-size: 14px; }
.footer-brand .brand { font-size: 1.4rem; }
.footer-brand a.footer-linkedin { display: inline-flex; align-items: center; gap: 9px; min-height: 30px; margin-top: 20px; color: var(--text); text-decoration: none; }
.footer-cols { display: flex; justify-content: flex-end; gap: clamp(28px, 5vw, 72px); }
.footer-cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-cols span { margin-bottom: 5px; color: var(--text); font-weight: 600; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 28px; color: var(--muted); text-decoration: none; }
.footer-cols a:hover, .footer-brand a.footer-linkedin:hover { color: var(--link); }
.footer-cols a[aria-current="page"] { color: var(--text); }
.footer-bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 25px; border-top: 1px solid var(--rule); font-size: 12px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }

@media (max-width: 1050px) {
  .nav-pill { gap: 14px; padding-inline: 12px; }
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 48px); }
  .site-nav { height: 80px; }
  .nav-pill { height: 60px; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-cols { justify-content: flex-start; gap: 40px; }
}
@media (max-width: 550px) {
  .container { width: calc(100% - 24px); }
  .site-nav { height: 70px; }
  .nav-pill { height: 54px; padding-inline: 10px 7px; border-radius: 20px; }
  .brand { font-size: 1.16rem; }
  .nav-pill .pill { min-height: 36px; padding: 8px 11px; font-size: 13px; }
  .nav-actions { gap: 7px; }
  .nav-actions .pill-primary { display: none; }
  .nav-menu summary { width: 36px; height: 36px; }
  main { padding-block: 32px 72px; }
  .policy-nav { width: 100%; }
  .policy-nav { gap: 2px; }
  .policy-nav a { flex: 1 1 auto; text-align: center; padding: 9px 6px; font-size: 13px; }
  .summary, .details { padding-inline: 20px; }
  .details { grid-template-columns: 1fr; }
  .details dt { padding-bottom: 0; border-bottom: 0; }
  .details dd { padding-top: 0; padding-left: 0; }
  .footer-cols { gap: 32px; flex-wrap: wrap; }
  .footer-bottom { font-size: 11px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .nav-pill, .policy-nav, .menu-panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #b7aa94; }
  .nav-pill::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); -webkit-mask-image: none; mask-image: none; height: 100%; }
}
@media (forced-colors: active) {
  .nav-pill, .policy-nav, .summary, .details, .pill, .nav-menu summary, .menu-panel { border: 1px solid CanvasText; background: Canvas; box-shadow: none; }
  .policy-nav a[aria-current="page"] { background: Highlight; color: HighlightText; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-nav, .policy-nav, .site-footer, .skip { display: none; }
  main { width: auto; padding: 0; }
  body { background: #fff; }
}
