/**
 * typography.css
 * Clean, modern editorial typography for Aadrika Enterprises
 * Consistent Blue (#1d33f3), Black (#0a0d14), and White (#ffffff) hierarchy.
 */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

p, a, span, li, button, input, select, textarea {
  overflow-wrap: break-word;
}

h1, .h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-size: clamp(1.65rem, 2.8vw + 0.4rem, 2.35rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.025em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 1.8vw + 0.25rem, 1.5rem);
  font-weight: var(--weight-bold);
}

h4, .h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

h5, .h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

h6, .h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.2rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  font-weight: var(--weight-normal);
}

/* Section Header & Technical Editorial Indicator */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-indicator {
  display: inline-block;
  width: 44px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 68ch;
  line-height: var(--leading-relaxed);
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Text Size & Weight Utilities */
.text-xs {
  font-size: var(--text-xs);
  line-height: 1.4;
}

.text-sm {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.text-base {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.text-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

.text-xl {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

.text-2xl {
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
}

/* Color & Alignment Utilities */
.text-mono {
  font-family: var(--font-mono);
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-accent {
  color: var(--color-primary) !important;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-inverse {
  color: var(--color-text-inverse);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.font-medium {
  font-weight: var(--weight-medium);
}

.font-semibold {
  font-weight: var(--weight-semibold);
}

.font-bold {
  font-weight: var(--weight-bold);
}

/* Legal & Long-form Document Content (Privacy Policy / Terms) */
.legal-body {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.legal-body h1 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary);
}

.legal-body h2 {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border-light);
}

.legal-body h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-body h4 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.legal-body p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.legal-body strong {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.legal-body ul,
.legal-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.legal-body ul {
  list-style: disc;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body li {
  margin-bottom: var(--space-3);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.legal-body a {
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--color-text-primary);
}
