/* ============================================================
   featherScroll — legal.css
   Privacy Policy and Terms of Service pages
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;700&display=swap");

:root {
  --green-deep: #1a3a2a;
  --green-forest: #2d5a3d;
  --green-mid: #3d7a52;
  --green-mist: #a8c5b0;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --cream: #f5f0e8;
  --text-dark: #1a2e1a;
  --text-mid: #3a5a3a;
  --text-muted: #6a8a6a;
  --border: #dde8dd;
  --bg-page: #f7fbf7;
  --bg-card: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", sans-serif;
  --radius-md: 12px;
  --radius-lg: 18px;
  --max-content: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ===== HEADER ===== */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 58, 42, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.legal-header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  object-fit: cover;
}

.legal-brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.legal-brand-name span {
  color: var(--gold-light);
}

.legal-home-btn {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-mist);
  padding: 6px 14px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.legal-home-btn:hover {
  color: var(--gold-light);
  border-color: rgba(201, 168, 76, 0.5);
}

/* ===== MAIN ===== */
.legal-main {
  padding: 0 1.5rem 4rem;
}

.legal-container {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ===== HERO ===== */
.legal-hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.legal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.legal-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legal-meta strong {
  color: var(--text-mid);
}

/* ===== BODY ===== */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.25rem 0 0.5rem;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.legal-section ul li {
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.65;
}

.legal-section ul li strong {
  color: var(--green-deep);
  font-weight: 600;
}

/* ===== INFO BOXES ===== */
.legal-box {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
}

.legal-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem !important;
  margin-top: 0 !important;
}

.legal-box p,
.legal-box li {
  font-size: 0.88rem !important;
  line-height: 1.65;
}

.legal-box ul {
  margin-top: 0.5rem;
}

.legal-box-info {
  background: rgba(45, 90, 61, 0.06);
  border: 1px solid rgba(45, 90, 61, 0.18);
  border-left: 3px solid var(--green-mid);
}

.legal-box-info h3 {
  color: var(--green-mid);
}

.legal-box-success {
  background: rgba(90, 158, 111, 0.06);
  border: 1px solid rgba(90, 158, 111, 0.2);
  border-left: 3px solid #5a9e6f;
}

.legal-box-success h3 {
  color: #3d7a52;
}

.legal-box-warning {
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-left: 3px solid var(--gold);
}

.legal-box-warning h3 {
  color: #8a6820;
}

/* ===== FOOT ===== */
.legal-foot {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.legal-foot p {
  font-size: 0.88rem;
  color: var(--green-mist);
  line-height: 1.6;
}

.legal-top-btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
  background: linear-gradient(135deg, #c9a84c, #e8c97a);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.legal-top-btn:hover {
  opacity: 0.88;
}

/* ===== FOOTER ===== */
.legal-footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.legal-footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.legal-footer-inner p {
  font-size: 0.8rem;
  color: var(--green-mist);
  font-weight: 300;
}

.legal-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-footer-links a {
  font-size: 0.78rem;
  color: var(--green-mist);
  transition: color 0.2s;
}

.legal-footer-links a:hover {
  color: var(--cream);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .legal-header-inner {
    padding: 0 1rem;
  }
  .legal-main {
    padding: 0 1rem 3rem;
  }
  .legal-meta {
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
  }
  .legal-hero {
    padding: 2.5rem 0 2rem;
  }
}
