/* =========================================================================
 * Tinas Hospitality — Legal pages stylesheet
 * Shared by /privacy-policy/ and /terms-and-conditions/
 * Visual language matched to the marketing site (website/styles.css).
 * ========================================================================= */

:root {
  --c1: #F2D9AF;
  --c2: #47221A;
  --c3: #FAC709;
  --c4: #DF7152;
  --c5: #84B19D;
  --bg: #FFF9EE;
  --bg-soft: #FFF5E2;
  --surface: #FFFFFF;
  --text: #111111;
  --muted: #50555C;
  --line: rgba(71, 34, 26, 0.12);
  --shadow: 0 12px 40px rgba(71, 34, 26, 0.10);
  --shadow-sm: 0 4px 16px rgba(71, 34, 26, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(840px, calc(100vw - 64px));
  --container-wide: min(1160px, calc(100vw - 64px));
}

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

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(250, 199, 9, 0.15), transparent 28%),
    linear-gradient(180deg, #FFF9EE 0%, #FFF5E2 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin: 0 auto; }
.container--wide { width: var(--container-wide); margin: 0 auto; }

/* Eyebrow pill — same as marketing site */
.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(223, 113, 82, 0.12);
  color: var(--c4);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  background: rgba(255, 249, 238, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(71, 34, 26, 0.08);
}
.legal-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.brand span {
  font-weight: 800;
  font-size: 17px;
  color: var(--c2);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c2);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(71, 34, 26, 0.18);
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 0.22s ease, transform 0.22s ease;
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* ── Hero strip ─────────────────────────────────────────────────────────── */
.legal-hero {
  padding: 72px 0 48px;
}
.legal-hero h1 {
  color: var(--c2);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.legal-hero .hero-sub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 60ch;
}
.effective-pill {
  display: inline-block;
  background: var(--c2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ── Main / reading area ────────────────────────────────────────────────── */
.legal-main {
  padding: 8px 0 96px;
}
.legal-intro {
  background: var(--surface);
  border-left: 4px solid var(--c4);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}
.legal-intro p + p { margin-top: 12px; }

/* Section cards */
.legal-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(71, 34, 26, 0.04);
}
.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c2);
  font-weight: 800;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-section h2 .num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--c4);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c4);
  margin: 22px 0 10px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.legal-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 16px;
}
.legal-section ul li {
  position: relative;
  padding: 6px 0 6px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c5);
}

/* Highlight boxes */
.highlight-box {
  background: rgba(223, 113, 82, 0.08);
  border: 1px solid rgba(223, 113, 82, 0.20);
  border-left: 4px solid var(--c4);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.highlight-box.green {
  background: rgba(132, 177, 157, 0.10);
  border-color: rgba(132, 177, 157, 0.28);
  border-left-color: var(--c5);
}

/* Sensitive tag */
.sensitive-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(192, 12, 15, 0.08);
  color: #C00C0F;
  border: 1px solid rgba(192, 12, 15, 0.22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Tables */
.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.legal-section thead th {
  background: var(--c2);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-section td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}
.legal-section tbody tr:nth-child(even) td {
  background: var(--bg-soft);
}
.legal-section tbody tr:last-child td { border-bottom: none; }

/* Contact box */
.legal-contact {
  margin-top: 40px;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--c2);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.legal-contact .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 16px;
}
.legal-contact .icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.legal-contact h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.legal-contact a.email {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--c3);
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(250, 199, 9, 0.40);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal-contact a.email:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.legal-contact .response-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  margin-top: 4px;
}
.legal-contact .location {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.legal-footer {
  background: var(--c2);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0 48px;
}
.legal-footer .footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 28px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.footer-brand span {
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  margin: 0;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

/* ── Tablet (≤ 1024px) ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --container: min(840px, calc(100vw - 48px));
    --container-wide: min(1160px, calc(100vw - 48px));
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-hero { padding: 48px 0 36px; }
  .legal-section { padding: 28px 24px 24px; }
  .legal-section h2 { font-size: 19px; gap: 12px; }
  .legal-section h2 .num { min-width: 28px; height: 28px; font-size: 12px; }
  .legal-section h3 { font-size: 15px; margin: 20px 0 8px; }
  .legal-intro { padding: 20px 22px; }
  .legal-contact { padding: 28px 24px; }
  .legal-contact h3 { font-size: 18px; }
  .legal-contact a.email { font-size: 16px; }
  .legal-footer .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .back-link span.label { display: none; } /* keep arrow only on mobile */
  .back-link { padding: 10px 14px; }
  .brand span { font-size: 15px; }
  .brand img { width: 40px; height: 40px; }
}

/* ── Small mobile (≤ 520px) ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  :root {
    --container: min(840px, calc(100vw - 32px));
    --container-wide: min(1160px, calc(100vw - 32px));
  }
  .legal-hero h1 { font-size: 36px; letter-spacing: -0.025em; }
  .legal-hero .hero-sub { font-size: 16px; }
  .legal-section { padding: 22px 18px 20px; border-radius: 18px; }
  .legal-section h2 { font-size: 18px; padding-bottom: 12px; margin-bottom: 14px; }
  .legal-section p,
  .legal-section ul li { font-size: 15px; }
  .legal-section table { font-size: 13px; }
  .legal-section thead th,
  .legal-section td { padding: 10px 12px; }
  .legal-intro { padding: 18px 20px; font-size: 15px; }
  .legal-contact { padding: 24px 20px; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-link { transition: none; }
}
