/* ════════════════════════════════════════════════════════════════
   Workro — shared styles for legal / policy pages
   (Contact Us, Terms & Conditions, Refund & Cancellation)

   Plain CSS on purpose: files in /public are copied verbatim into the
   build output and are NOT processed by Vite/Tailwind, so they can't use
   Tailwind utilities. Tokens mirror the marketing site (src/index.css).
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg-base: #F4F4F0;
  --bg-surface: #FFFFFF;
  --text-primary: #050505;
  --text-secondary: #555555;
  --text-body: #44444a;
  --border-color: rgba(0, 0, 0, 0.08);
  --accent-orange: #FF9933;
  --accent-green: #138808;
  --accent-navy: #000080;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

::selection { background-color: #050505; color: #F4F4F0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

img { max-width: 100%; height: auto; }

/* ───────── Header ───────── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 244, 240, 0.8);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border-color);
}
.legal-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-wordmark {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
}
.legal-header__back {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(5, 5, 5, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal-header__back:hover { color: rgba(5, 5, 5, 0.85); }

/* ───────── Main / content card ───────── */
.legal-main {
  max-width: 820px;
  margin: clamp(2rem, 6vw, 4.5rem) auto clamp(3rem, 8vw, 6rem);
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}
.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(1.75rem, 5vw, 4rem);
  box-shadow: 0 24px 70px -42px rgba(0, 0, 0, 0.22);
}
.legal-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.legal-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text-primary);
}
.legal-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(to right, #FF9933, #138808, #000080);
}
.legal-updated {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legal-content { margin-top: clamp(1.75rem, 5vw, 2.75rem); }
.legal-content h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.legal-content p,
.legal-content li {
  color: var(--text-body);
  font-size: 0.97rem;
  font-weight: 400;
}
.legal-content p { margin: 0 0 1rem; }
.legal-content ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.legal-content li { margin: 0 0 0.5rem; }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-content a {
  color: var(--accent-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal-content a:hover { color: #050505; }

/* Contact-details table */
.legal-contact { list-style: none; margin: 0.5rem 0 1.5rem; padding: 0; }
.legal-contact li {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-color);
}
.legal-contact li:last-child { border-bottom: 0; }
.legal-contact .label {
  flex: 0 0 140px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Highlighted note */
.legal-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 153, 51, 0.06);
  border: 1px solid rgba(255, 153, 51, 0.28);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--text-body);
}

/* Fill-me-in marker (visible only until real details are added) */
.placeholder {
  color: #b00020;
  background: rgba(176, 0, 32, 0.07);
  padding: 0.05em 0.4em;
  border-radius: 5px;
  font-size: 0.92em;
  font-weight: 500;
}

/* ───────── Footer ───────── */
.legal-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.legal-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(5, 5, 5, 0.45);
}
.legal-footer__entity { font-weight: 500; color: rgba(5, 5, 5, 0.55); }
.legal-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.legal-footer__links a {
  color: rgba(5, 5, 5, 0.55);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.legal-footer__links a:hover { color: rgba(5, 5, 5, 0.85); }

@media (max-width: 640px) {
  .legal-footer__inner { flex-direction: column; align-items: flex-start; }
  .legal-contact li { flex-direction: column; gap: 0.15rem; }
  .legal-contact .label { flex-basis: auto; }
}
