/* Shared styles for legal pages and blog */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060a12;
  --bg-card: #111a2b;
  --gold: #c9a84c;
  --gold-light: #e8cc7a;
  --text: #eef2f8;
  --text-muted: #8b9cb5;
  --border: rgba(201, 168, 76, 0.12);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --max-w: 760px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1140px);
  margin-inline: auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.logo-link img { width: 38px; }

.logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.back-link:hover { color: var(--gold); }

/* Page content */
.page-main { padding: 3.5rem 0 5rem; }

.page-main h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--gold-light);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content strong { color: var(--text); font-weight: 500; }

/* Blog */
.blog-hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-hero p {
  color: var(--text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)), border-color 0.45s, box-shadow 0.45s;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 168, 76, 0.28);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}

.blog-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0c1220;
}

.blog-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.55) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.blog-card:hover .blog-card-image::after {
  opacity: 0.7;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-image img { transform: scale(1.06); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-card-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.blog-card h2 a { color: var(--text); }
.blog-card h2 a:hover { color: var(--gold-light); }

.blog-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.15rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.blog-card:hover .read-more svg { transform: translateX(4px); }

.blog-source {
  text-align: center;
  padding-bottom: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: #0c1220;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: rgba(139, 156, 181, 0.6);
}

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