/* legal.css – Shavaland Legal Pages */

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

:root {
  --color-warm: #f5f0e8;
  --color-gold: #c8963e;
  --color-gold-light: #f0ddb3;
  --color-text: #2c2416;
  --color-text-muted: #7a6a52;
  --color-border: #e0d5c0;
  --color-bg: #faf7f2;
  --color-white: #ffffff;
  --color-info-bg: #fef9ee;
  --color-info-border: #c8963e;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #dc2626;
  --font-body: 'Georgia', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-header nav a:hover {
  color: var(--color-text);
}

.site-header nav a.active {
  color: var(--color-text);
  border-bottom-color: var(--color-gold);
}

/* ---- Main Content ---- */
.legal-content {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 2rem;
  flex: 1;
}

/* ---- Page Header ---- */
.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  background: var(--color-gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.legal-header h1 {
  font-size: 2.25rem;
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.legal-header .subtitle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---- Sections ---- */
.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: normal;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-text);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  margin-bottom: 0.85rem;
  color: var(--color-text);
}

.legal-section ul {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
}

.legal-section ul li {
  margin-bottom: 0.4rem;
}

address {
  font-style: normal;
  line-height: 1.9;
  color: var(--color-text);
}

/* ---- Info Table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.info-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-warm);
}

.info-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td:first-child {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---- Info / Highlight Boxes ---- */
.info-box {
  background: var(--color-info-bg);
  border-left: 3px solid var(--color-info-border);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.info-box--important {
  background: #fff8e6;
  border-left-color: var(--color-gold);
}

.highlight-box {
  background: var(--color-warm);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.highlight-box h3 {
  margin-top: 0;
}

/* ---- Form Template ---- */
.form-template {
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  line-height: 2;
  margin-top: 0.75rem;
}

/* ---- Hints and Notes ---- */
.hint {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.placeholder-note {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: block;
  margin-top: 0.5rem;
}

/* ---- Links ---- */
a {
  color: var(--color-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Last Updated ---- */
.last-updated {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .site-header {
    padding: 0 1rem;
  }

  .site-header nav {
    gap: 0.75rem;
  }

  .site-header nav a {
    font-size: 0.7rem;
  }

  .legal-content {
    margin: 1.5rem auto;
    padding: 0 1rem;
  }

  .legal-header h1 {
    font-size: 1.6rem;
  }

  .info-table {
    font-size: 0.8rem;
  }

  .info-table th,
  .info-table td {
    padding: 0.4rem 0.5rem;
  }
}
