@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2F3E47;
  --primary-light: #5C6F7B;
  --accent: #AA8C55;
  --accent-light: #C9A15B;
  --bg: #F7F2ED;
  --surface: #FFFFFF;
  --text: #2F3E47;
  --text-light: #6A7A85;
  --border: rgba(47, 62, 71, 0.1);
  --shadow-sm: 0 4px 6px rgba(47, 62, 71, 0.05);
  --shadow-md: 0 8px 15px rgba(47, 62, 71, 0.08);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(170, 140, 85, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(47, 62, 71, 0.05) 0%, transparent 20%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

h2 {
  font-size: 1.5rem; /* Reduced from default h2 size for documents */
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Add accent decoration before h2 */
h2::before {
  content: '';
  display: block;
  width: 6px;
  height: 24px;
  background: var(--accent);
  border-radius: 3px;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1.05rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent-light);
}

.section {
  margin-bottom: 2rem;
}

/* Highlight boxes for important info */
.highlight, .notice, .warning {
  background: rgba(170, 140, 85, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.warning {
  background: rgba(220, 53, 69, 0.05); /* Red tint */
  border-left-color: #dc3545;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-style: italic;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.legal-meta span {
  background: rgba(47, 62, 71, 0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Button styles if needed */
.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  border-bottom-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .container {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* Mobile table: card layout */
@media (max-width: 600px) {
  table {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  thead {
    display: none;
  }

  tr {
    display: block;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
  }

  td {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 0.2rem;
  }

  td:last-child {
    border-bottom: none;
  }
}

/* Legacy compatibility classes */
.legal, .contact {
  background: rgba(47, 62, 71, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.legal {
  border-left: 4px solid var(--accent);
  background: rgba(170, 140, 85, 0.05);
}

.contact {
  background: white;
  box-shadow: var(--shadow-sm);
}


/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  background-color: var(--primary);
  color: var(--bg);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}


/* CTA button compatibility */
.cta, .btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  border: none;
}

.cta:hover, .btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}


/* Centered Card Layout (for verification/status pages) */
body.centered-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.centered-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md); /* Updated to match theme variable */
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
}

.centered-card h1 {
  font-size: 1.5rem;
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.centered-card p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.centered-card button {
  width: 100%;
  padding: 0.875rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.centered-card .btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(170, 140, 85, 0.3);
}

.centered-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(170, 140, 85, 0.4);
}

.centered-card .muted {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

.input-group, .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label, .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.input-group input, .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus, .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(170, 140, 85, 0.1);
}

