/* ============================================================
   DudesChat — shared styles for policy / legal pages
   Mirrors the brand tokens used by index.html
   ============================================================ */

:root {
  --ember1: #2a1612;
  --ember2: #3d1d18;
  --ember5: #c43d22;
  --ember7: #e85a35;
  --ember8: #ff7a45;
  --emberD: #f5d4c4;

  --cream:  #faf3eb;
  --cream2: #f3e8d9;
  --paper:  #fffaf3;

  --warm1: #1d1816;
  --warm3: #3e342e;
  --warm5: #6e5c54;
  --warm7: #8b7a72;
  --warmA: #b6a89f;
  --warmC: #d8ccc1;
  --warmE: #ece2d6;

  --brownA: #ccaea3;
}

html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--ember2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: var(--ember7); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.1rem; }
a:hover { color: var(--ember5); }

/* ===== Monogram ===== */
.ds-mono {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  isolation: isolate;
  user-select: none;
  white-space: nowrap;
}
.ds-mono > span { display: inline-block; mix-blend-mode: multiply; }
.ds-mono .ink-a { margin-right: -0.16em; position: relative; z-index: 1; color: var(--warm5); }
.ds-mono .ink-b { position: relative; z-index: 2; color: var(--ember7); }
.ds-mono.on-dark > span { mix-blend-mode: screen; }
.ds-mono.on-dark .ink-a { color: var(--brownA); }
.ds-mono.on-dark .ink-b { color: var(--ember8); }

.ds-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}
.ds-lockup .mark-slot { display: inline-flex; align-items: center; font-size: 1.5em; line-height: 0.85; margin-right: 0.12em; }
.ds-lockup .word { display: inline-flex; letter-spacing: 0; align-items: baseline; font-size: 1em; }
.ds-lockup .word .dudes { font-weight: 300; color: var(--ember2); margin-right: 0.04em; }
.ds-lockup .word .chat  { font-weight: 700; color: var(--ember7); }
.on-dark .ds-lockup .word .dudes { color: var(--cream); }
.on-dark .ds-lockup .word .chat  { color: var(--ember8); }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 235, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 0.1rem solid var(--warmE);
}
.nav .inner {
  max-width: 128rem; margin: 0 auto;
  padding: 1.6rem 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav .ds-lockup { font-size: 2rem; }
.nav .links { display: none; gap: 2.8rem; }
.nav .links a { color: var(--warm3); font-size: 1.3rem; font-weight: 500; text-decoration: none; }
.nav .links a:hover { color: var(--ember7); }
.nav .cta {
  font-size: 1.25rem; font-weight: 700; padding: 0.9rem 1.6rem; border-radius: 0.4rem;
  background: linear-gradient(90deg, var(--ember5) 0%, var(--ember7) 50%, var(--ember8) 100%);
  background-size: 200% 100%;
  color: #fff; letter-spacing: 0.04em; text-transform: uppercase;
  animation: ember-flow 6s ease-in-out infinite;
  text-decoration: none;
}
.nav .cta:hover { animation-duration: 2.5s; background-position: 100% 50%; color: #fff; }
@media (min-width: 900px) { .nav .links { display: flex; } }

@keyframes ember-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Policy page hero ===== */
.policy-hero {
  padding: 6rem 2.4rem 4rem;
  border-bottom: 0.1rem solid var(--warmE);
}
.policy-hero .inner { max-width: 88rem; margin: 0 auto; }
.policy-hero .num {
  font-size: 1.1rem; font-weight: 700; color: var(--ember7);
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 1.2rem;
}
.policy-hero h1 {
  margin: 0 0 1.6rem;
  font-size: clamp(3.6rem, 6vw, 5.6rem);
  font-weight: 300; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--ember2);
}
.policy-hero h1 strong { font-weight: 700; }
.policy-hero .lede {
  font-size: 1.8rem; line-height: 1.45; font-weight: 300;
  color: var(--warm3); max-width: 64rem; margin: 0;
}
.policy-hero .meta {
  margin-top: 3.2rem; padding-top: 2rem;
  border-top: 0.1rem solid var(--warmE);
  display: flex; flex-wrap: wrap; gap: 2.4rem 4rem;
  font-size: 1.1rem; color: var(--warm7);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
}
.policy-hero .meta strong { color: var(--ember2); font-weight: 700; }

/* ===== Policy prose ===== */
.policy-body {
  padding: 5rem 2.4rem 8rem;
  background: var(--cream);
}
.policy-body .inner {
  max-width: 76rem;
  margin: 0 auto;
  background: var(--paper);
  border: 0.1rem solid var(--warmE);
  border-radius: 0.8rem;
  padding: 5rem clamp(2.4rem, 5vw, 5rem);
}

.policy-body h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--ember2);
  margin: 4rem 0 1.6rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-top: 0.1rem solid var(--warmE);
  padding-top: 3.2rem;
}
.policy-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.policy-body h3 {
  font-size: 1.6rem; font-weight: 700;
  color: var(--ember5);
  margin: 3rem 0 1rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.policy-body p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--ember2);
  margin: 0 0 1.4rem;
  max-width: 64rem;
}
.policy-body p.intro {
  font-size: 1.7rem; font-weight: 400; color: var(--warm3); line-height: 1.55;
}
.policy-body p.fine-print { font-size: 1.25rem; color: var(--warm5); font-style: italic; }

.policy-body ul, .policy-body ol {
  margin: 0 0 1.8rem; padding-left: 2.2rem;
  font-size: 1.5rem; line-height: 1.7; color: var(--ember2);
}
.policy-body ul li, .policy-body ol li { margin-bottom: 0.8rem; }
.policy-body ul li::marker { color: var(--ember7); }

.policy-body strong { font-weight: 700; color: var(--ember2); }
.policy-body em { font-style: italic; color: var(--warm3); }

.policy-body .tl-dr {
  background: var(--cream2);
  border-left: 0.4rem solid var(--ember7);
  border-radius: 0.4rem;
  padding: 2.4rem 2.6rem;
  margin: 0 0 4rem;
}
.policy-body .tl-dr h2 { margin: 0 0 1.2rem; border: 0; padding: 0; font-size: 1.2rem; color: var(--ember7); letter-spacing: 0.16em; }
.policy-body .tl-dr p { margin: 0 0 0.8rem; font-size: 1.4rem; color: var(--ember2); }
.policy-body .tl-dr ul { margin: 0; padding-left: 2rem; font-size: 1.4rem; }
.policy-body .tl-dr ul li { margin-bottom: 0.6rem; }

.policy-body .last-revised {
  margin-top: 5rem; padding-top: 2.4rem;
  border-top: 0.1rem solid var(--warmE);
  font-size: 1.1rem; color: var(--warm7);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}

.policy-body .upper-case { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.6; color: var(--warm3); }

/* ===== Other policies — list at bottom ===== */
.other-policies {
  padding: 5rem 2.4rem 7rem;
  background: var(--paper);
  border-top: 0.1rem solid var(--warmE);
}
.other-policies .inner { max-width: 88rem; margin: 0 auto; }
.other-policies h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--ember7);
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 2rem;
}
.other-policies ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 700px) { .other-policies ul { grid-template-columns: repeat(2, 1fr); } }
.other-policies li a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 1.8rem;
  border: 0.1rem solid var(--warmE);
  border-radius: 0.6rem;
  background: var(--cream);
  color: var(--ember2);
  font-size: 1.4rem; font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.other-policies li a:hover { border-color: var(--ember7); color: var(--ember7); transform: translateY(-0.2rem); }
.other-policies li a::after { content: "→"; color: var(--ember7); font-weight: 700; }

/* ===== Footer ===== */
footer.site {
  background: var(--ember1); color: var(--brownA);
  padding: 6rem 2.4rem 3rem;
}
footer.site .inner { max-width: 128rem; margin: 0 auto; }
footer.site .cols {
  display: grid; grid-template-columns: 1fr; gap: 3.2rem;
  padding-bottom: 4rem;
  border-bottom: 0.1rem solid rgba(245, 212, 196, 0.14);
}
@media (min-width: 700px) { footer.site .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4rem; } }
footer.site h4 { font-size: 1.1rem; font-weight: 700; color: var(--ember8); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1.6rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
footer.site ul a { color: var(--brownA); font-size: 1.3rem; text-decoration: none; }
footer.site ul a:hover { color: var(--ember8); }
footer.site .brand { display: flex; flex-direction: column; gap: 1.6rem; }
footer.site .brand .ds-lockup { font-size: 2.4rem; }
footer.site .brand p { font-size: 1.25rem; color: var(--brownA); max-width: 36rem; margin: 0; }
footer.site .imprint {
  padding-top: 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem;
  font-size: 1.05rem; color: rgba(204, 174, 163, 0.7); letter-spacing: 0.04em;
}
footer.site .imprint .legal { display: flex; gap: 2rem; flex-wrap: wrap; }
footer.site .imprint a { color: rgba(204, 174, 163, 0.85); text-decoration: none; }
footer.site .imprint a:hover { color: var(--ember8); }

.skip-link { position: absolute; left: -999rem; top: 0; padding: 1rem; background: var(--ember2); color: var(--cream); }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; }

@media (prefers-reduced-motion: reduce) {
  .nav .cta { animation: none; }
}
