/* Tailysmate legal — Co-star editorial: monochrome, serif display, quiet luxury */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #070707;
  --bg-glow: #121212;
  --ink: #f4f1ea;
  --ink-soft: #c8c4bc;
  --muted: #8a8680;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.22);
  --serif: 'Cormorant Garamond', 'Times New Roman', Times, serif;
  --sans: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.01em;
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-glow), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right, 0px)) 72px max(24px, env(safe-area-inset-left, 0px));
}

/* ——— Header: brand as editorial mark ——— */
header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  object-fit: cover;
  flex-shrink: 0;
}

.brand {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-soft);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
}

nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--line-strong);
}

/* ——— Document surface ——— */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 6px 12px;
  margin-bottom: 28px;
}

h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.meta {
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

#legal-intro {
  margin: 0 0 40px;
  max-width: 38em;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ——— Sections ——— */
.legal-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
  border-top: 1px solid var(--line-strong);
}

h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.sec {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 40em;
}

.sec strong {
  font-weight: 500;
  color: var(--ink);
}

.sec ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
}

.sec li {
  margin: 0.35em 0;
}

.sec li::marker {
  color: var(--muted);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .wrap {
    padding: 32px max(24px, env(safe-area-inset-right, 0px)) 56px max(24px, env(safe-area-inset-left, 0px));
  }

  .brand {
    font-size: 34px;
  }

  #legal-intro {
    font-size: 19px;
  }

  h2 {
    font-size: 22px;
  }
}
