:root {
  --red: #a70f22;
  --red-dark: #7d0a18;
  --rose-soft: #fff3f3;
  --gold: #b9832f;
  --gold-soft: #f4e6c8;
  --ink: #261d1f;
  --muted: #6d5f62;
  --paper: #fffdf9;
  --line: #e7d9d3;
  --line-strong: #d8c3ba;
  --shadow: 0 18px 50px rgba(67, 29, 32, 0.09);
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at top left,
      rgba(185, 131, 47, 0.10),
      transparent 26rem
    ),
    linear-gradient(180deg, #fffdf9 0%, #fff8f2 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--red-dark);
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(167, 15, 34, 0.10);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  width: min(calc(100% - 32px), 1180px);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 220px;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b3d40;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red-dark);
  background: var(--rose-soft);
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--red);
  box-shadow: 0 8px 22px rgba(167, 15, 34, 0.22);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: #fff;
  background: var(--red-dark);
}

.legal-page {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.legal-hero {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(185, 131, 47, 0.40);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(185, 131, 47, 0.16),
      transparent 15rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 246, 239, 0.98)
    );
  box-shadow: var(--shadow);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.legal-summary {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-layout {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.legal-toc {
  position: sticky;
  top: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(67, 29, 32, 0.05);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dark);
}

.legal-toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

.legal-content {
  min-width: 0;
}

.legal-section {
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(67, 29, 32, 0.05);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--red-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 12px 0 14px;
  padding-left: 22px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-notice {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: #fff9ec;
  color: #5d4a2f;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.site-footer-inner {
  width: min(calc(100% - 32px), 1180px);
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .site-header-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-logo {
    width: 200px;
    max-height: 62px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
  }

  .site-footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header-inner,
  .legal-page,
  .site-footer-inner {
    width: min(calc(100% - 20px), 1180px);
  }

  .site-nav a {
    padding: 9px 10px;
    font-size: 0.89rem;
  }

  .legal-page {
    padding-top: 24px;
  }

  .legal-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .legal-section {
    padding: 22px 18px;
  }
}
