/* ==========================================================================
   Design System Variables (matching landing page)
   ========================================================================== */
:root {
  /* Primary Colors */
  --color-primary-100: #f7ede6;
  --color-primary-200: #e9b79b;
  --color-primary-300: #d88a5a;
  --color-primary-400: #c96a33;
  --color-primary-500: #b85c27;

  /* Cream */
  --color-cream-50: #fffdf9;
  --color-cream-100: #fefbf5;
  --color-cream-200: #fdf7ed;
  --color-cream-300: #fbf3e1;
  --color-cream-400: #f5e9d3;
  --color-cream-500: #eddcbe;

  /* Earth */
  --color-earth-50: #f7f4f3;
  --color-earth-100: #ede7e5;
  --color-earth-700: #4a2c2a;
  --color-earth-800: #3a2221;
  --color-earth-900: #2a1918;

  /* Peach */
  --color-peach-100: #fdf1e3;
  --color-peach-400: #f1b976;
  --color-peach-500: #e9a05a;

  /* Gray */
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #eeeeee;
  --color-gray-300: #e0e0e0;
  --color-gray-400: #bdbdbd;
  --color-gray-500: #9e9e9e;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;

  /* Shadows */
  --shadow-soft: 0 2px 8px -2px rgb(74 44 42 / 0.06), 0 1px 3px -1px rgb(74 44 42 / 0.03);
  --shadow-soft-lg: 0 8px 20px -6px rgb(74 44 42 / 0.1), 0 4px 8px -4px rgb(74 44 42 / 0.05);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Urbanist", system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: var(--color-earth-700);
  background-color: var(--color-cream-50);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.text-h1 { font-size: 48px; font-weight: 700; line-height: 1.2; }
.text-h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
.text-h3 { font-size: 32px; font-weight: 700; line-height: 1.2; }
.text-h4 { font-size: 24px; font-weight: 700; line-height: 1.2; }
.text-h5 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.text-body-xl { font-size: 18px; font-weight: 400; line-height: 1.6; }
.text-body-lg { font-size: 16px; font-weight: 400; line-height: 1.6; }
.text-body-lg-bold { font-size: 16px; font-weight: 700; line-height: 1.6; }
.text-body-md { font-size: 14px; font-weight: 400; line-height: 1.6; }
.text-body-sm { font-size: 12px; font-weight: 400; line-height: 1.5; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-cream-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-earth-700);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.main {
  padding-top: 72px; /* header height */
}

.legal-page {
  min-height: calc(100vh - 72px);
  background-color: white;
  padding: 32px 24px 64px;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  margin-bottom: 24px;
}

.back-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--color-gray-900);
  flex-shrink: 0;
}

.back-btn:hover {
  background-color: var(--color-gray-100);
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-gray-900);
}

/* Content card */
.content-card {
  background-color: var(--color-gray-50);
  border-radius: 16px;
  padding: 32px;
}

@media (min-width: 1024px) {
  .content-card {
    padding: 40px;
  }
}

/* Legal text styles */
.legal-content {
  color: var(--color-gray-700);
  font-size: 14px;
  line-height: 1.6;
}

.legal-content .section {
  margin-bottom: 24px;
}

.legal-content > section {
  margin-bottom: 24px;
}

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

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

.legal-content .section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 12px;
  line-height: 1.4;
}

.legal-content .main-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.4;
  margin: 0 0 12px;
}

.legal-content h3,
.legal-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.4;
  margin: 16px 0 8px;
}

.legal-content .sub-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray-900);
  line-height: 1.4;
  margin-bottom: 8px;
}

.legal-content p + .section-title,
.legal-content ul + .section-title,
.legal-content ol + .section-title {
  margin-top: 20px;
}

.legal-content p + .sub-title,
.legal-content ul + .sub-title,
.legal-content ol + .sub-title {
  margin-top: 16px;
}

.legal-content p {
  margin-bottom: 8px;
  line-height: 1.7;
}

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

.legal-content ol {
  padding-left: 24px;
  margin-bottom: 8px;
}

.legal-content ol li {
  margin-bottom: 4px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 8px;
}

.legal-content ul li {
  margin-bottom: 4px;
  line-height: 1.7;
}

.legal-content .indent {
  padding-left: 24px;
}

.legal-content .indent p {
  margin-bottom: 4px;
}

.legal-content .uppercase {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-earth-800);
  color: white;
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.footer-tagline {
  color: var(--color-gray-400);
  font-size: 14px;
  line-height: 1.6;
}

.footer-column h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-gray-400);
  font-size: 14px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--color-gray-500);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-gray-400);
  transition: all 0.2s ease;
  cursor: pointer;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 24px 16px 48px;
  }

  .content-card {
    padding: 24px 20px;
  }
}
