/* ============================================
   CRIMSON & QUILL - MAIN STYLESHEET
   Modern Minimalist Design
   ============================================ */

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
  /* Brand Colors - Black & Gold */
  --primary: #000000;
  --primary-dark: #000000;
  --primary-light: #F5F5F5;
  --gold: #B8860B;
  --gold-light: #D4A84B;
  --gold-dark: #8B6914;

  /* Legacy color aliases for compatibility */
  --crimson: #000000;
  --crimson-dark: #000000;
  --crimson-light: #F5F5F5;

  /* Neutral Colors */
  --dark: #000000;
  --gray: #4A4A4A;
  --gray-light: #888888;
  --silver: #E0E0E0;
  --off-white: #FAFAFA;
  --white: #FFFFFF;

  /* Typography - Helvetica Neue alternatives */
  --font-serif: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 900px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

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

a {
  color: var(--crimson);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--crimson-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h4 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gray);
}

.small {
  font-size: 0.875rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--crimson);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: calc(var(--space-4xl) * 1.5) 0;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

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

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

.logo-name {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-amp {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  font-family: 'Times New Roman', Georgia, serif;
  margin: 0 0.1em;
}

/* Legacy styles - kept for compatibility */
.logo-mark {
  display: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crimson);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--crimson);
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  min-width: 240px;
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  color: var(--dark);
  font-size: 0.9375rem;
}

.nav-dropdown a:hover {
  background: var(--off-white);
  color: var(--crimson);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition-base);
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: var(--space-md);
    border-bottom: 1px solid var(--silver);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    padding-left: var(--space-lg);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}

.btn-primary:hover {
  background: var(--crimson-dark);
  border-color: var(--crimson-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-secondary:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--crimson);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-label {
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-xl);
}

.hero-text {
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Geometric decoration */
.hero-decoration {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  opacity: 0.1;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-decoration {
    display: none;
  }
}

/* ============================================
   PAGE HERO (Internal Pages)
   ============================================ */
.page-hero {
  background: var(--off-white);
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-hero .lead {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  background: var(--crimson-light);
  color: var(--crimson);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3, .card h4 {
  margin-bottom: var(--space-md);
}

.card p {
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--crimson);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Feature Cards (Value Props) */
.feature-card {
  text-align: center;
  padding: var(--space-2xl);
}

.feature-card .card-icon {
  margin: 0 auto var(--space-lg);
}

/* Practice Area Cards */
.practice-card {
  border: 1px solid var(--silver);
  box-shadow: none;
}

.practice-card:hover {
  border-color: var(--crimson);
}

/* Filter Chips */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--off-white);
  border: 1px solid var(--silver);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--dark);
}

.filter-chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header .label {
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--gray);
  margin-bottom: 0;
}

/* ============================================
   ABOUT / CONTENT SECTIONS
   ============================================ */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.content-section.reverse {
  direction: rtl;
}

.content-section.reverse > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .content-section {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .content-section.reverse {
    direction: ltr;
  }
}

.content-image {
  position: relative;
}

.content-image img {
  border-radius: var(--radius-md);
}

.content-image::after {
  content: '';
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  right: calc(var(--space-lg) * -1);
  bottom: calc(var(--space-lg) * -1);
  border: 3px solid var(--crimson);
  border-radius: var(--radius-md);
  z-index: -1;
}

/* Quote Block */
.quote-block {
  background: var(--crimson-light);
  border-left: 4px solid var(--crimson);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 0;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  background: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  color: var(--gray);
}

.team-photo-placeholder svg {
  width: 64px;
  height: 64px;
}

.team-card h4 {
  margin-bottom: var(--space-xs);
}

.team-card .title {
  color: var(--crimson);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.team-card p {
  font-size: 0.9375rem;
  color: var(--gray);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--crimson);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo-name {
  color: var(--white);
}

.footer-brand .logo-tagline {
  color: var(--gray-light);
}

.footer-brand p {
  color: var(--gray-light);
  margin: var(--space-lg) 0;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--crimson);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-light);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--gray-light);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--crimson);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--gray-light);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--gray-light);
  font-size: 0.875rem;
}

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

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--silver);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   INSIGHTS / BLOG
   ============================================ */
.insight-card {
  display: flex;
  flex-direction: column;
}

.insight-card-image {
  height: 200px;
  background: var(--silver);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.insight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insight-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.insight-card h4 {
  margin-bottom: var(--space-sm);
}

.insight-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  flex: 1;
}

/* ============================================
   UTILITIES
   ============================================ */
.bg-light { background: var(--off-white); }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-crimson { background: var(--crimson); color: var(--white); }

.text-crimson { color: var(--crimson); }
.text-gold { color: var(--gold); }
.text-gray { color: var(--gray); }
.text-white { color: var(--white); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 99;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--crimson-dark);
  transform: translateY(-4px);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--silver);
  border-top-color: var(--crimson);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms)
   ============================================ */
.legal-content {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-4xl);
}

.legal-updated {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--silver);
}

.legal-section {
  margin-bottom: var(--space-2xl);
}

.legal-section h2 {
  color: var(--crimson);
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.legal-section h3 {
  font-size: 1.125rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-section p {
  margin-bottom: var(--space-md);
  color: var(--dark);
}

.legal-section ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.legal-section ul li {
  margin-bottom: var(--space-sm);
  color: var(--dark);
}

.legal-section a {
  color: var(--crimson);
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-contact {
  background: var(--off-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.legal-contact p {
  margin-bottom: var(--space-sm);
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .footer,
  .scroll-top,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }
}
