:root {
  --cream: #FAF6F1;
  --terra: #C06B45;
  --terra-light: #E8956D;
  --rose-pale: #F2E8E4;
  --burgundy: #7D3535;
  --dark: #261410;
  --mid: #6B4040;
  --warm-white: #FFFBF8;
}

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

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
}

a { color: var(--terra); text-decoration-thickness: 1px; text-underline-offset: 3px; }

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  border-bottom: 1px solid rgba(192,107,69,0.1);
  background: rgba(250,246,241,0.9);
  backdrop-filter: blur(14px);
}

.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo-img { height: 32px; width: 32px; object-fit: contain; border-radius: 6px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--terra); line-height: 1; }
.nav-logo-sub { font-size: 0.63rem; color: var(--mid); letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.25s; }
.nav-links a:hover { color: var(--terra); }
.lang-switch { display: inline-flex; gap: 0.35rem; align-items: center; border: 1px solid rgba(192,107,69,0.18); border-radius: 999px; padding: 0.25rem; }
.lang-switch a { padding: 0.32rem 0.55rem; border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.04em; }
.lang-switch a.active { background: var(--terra); color: white; }

.legal-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2rem;
}

.doc-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 300;
  line-height: 1.06;
  margin-bottom: 1rem;
  max-width: 780px;
}

h1 em { color: var(--terra); font-style: italic; }

.doc-meta {
  color: var(--mid);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 680px;
}

.legal-layout {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  background: rgba(255,251,248,0.72);
  border: 1px solid rgba(192,107,69,0.12);
  border-radius: 18px;
  padding: 1.2rem;
}

.legal-toc-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.legal-toc a {
  display: block;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 0;
}

.legal-toc a:hover { color: var(--terra); }

.legal-content {
  background: var(--warm-white);
  border: 1px solid rgba(192,107,69,0.1);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 18px 48px rgba(38,20,16,0.06);
}

.notice {
  background: var(--rose-pale);
  border-left: 3px solid var(--terra);
  border-radius: 0 14px 14px 0;
  padding: 1.1rem 1.3rem;
  color: var(--dark);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin: 2.4rem 0 0.7rem;
}

h2:first-child { margin-top: 0; }
h3 { font-size: 1rem; font-weight: 500; color: var(--dark); margin: 1.3rem 0 0.5rem; }
p { color: var(--mid); font-size: 0.94rem; line-height: 1.85; margin-bottom: 1rem; }
ul { padding-left: 1.25rem; margin: 0.4rem 0 1.1rem; }
li { color: var(--mid); font-size: 0.94rem; line-height: 1.8; margin-bottom: 0.28rem; }
strong { color: var(--dark); font-weight: 500; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem;
  font-size: 0.88rem;
  color: var(--mid);
}

th, td { text-align: left; vertical-align: top; border: 1px solid rgba(192,107,69,0.14); padding: 0.8rem; line-height: 1.6; }
th { color: var(--dark); background: var(--rose-pale); font-weight: 500; }

.contact-card {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item {
  background: white;
  border: 1px solid rgba(192,107,69,0.12);
  border-radius: 16px;
  padding: 1.1rem;
}

.contact-label { color: var(--mid); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.35rem; }
.contact-value { color: var(--terra); font-size: 0.95rem; font-weight: 500; overflow-wrap: anywhere; }

footer {
  background: var(--dark);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--terra); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.4); font-size: 0.78rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--terra-light); }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

@media (max-width: 820px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 0; }
  .nav-links li:not(.lang-switch) { display: none; }
  .legal-hero { padding: 3rem 1.5rem 1rem; }
  .legal-layout { display: block; padding: 1rem 1.5rem 4rem; }
  .legal-toc { display: none; }
  .legal-content { border-radius: 20px; }
  .contact-card { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
}
