/* ── Shared Tunndu site styles ── */

:root {
  --blue: #1E3A8A;
  --blue-deep: #172554;
  --blue-light: #3B82F6;
  --gold: #C8956D;
  --gold-light: #E0B88A;
  --gold-deep: #A87553;
  --cream: #FAF7F2;
  --cream-dark: #F5EFE6;
  --charcoal: #1F2937;
  --slate: #6B7280;
  --slate-light: #9CA3AF;
  --white: #FFFFFF;
  --border: #E5E0D8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
  background: transparent;
}

nav.scrolled {
  background: rgba(23, 37, 84, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

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

nav .logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

nav ul a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--gold-light); }

nav .nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

nav .nav-cta:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
  color: var(--white);
}

.menu-toggle { display: none; }

/* ── Page hero ── */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 50%, #2D4A9E 100%);
  overflow: hidden;
  padding: 140px 40px 80px;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 149, 109, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.1); }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 600;
}

.page-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

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

/* ── Content card ── */
.content-section {
  padding: 100px 40px;
  position: relative;
}

.content-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  padding: 64px 56px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.content-intro {
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.content-intro strong { color: var(--blue); }

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 14px;
}

.legal-section p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section strong { color: var(--blue); }

.legal-section ul {
  list-style: none;
  padding-left: 4px;
  margin-bottom: 12px;
}

.legal-section li {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.meta-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--slate-light);
  font-size: 13px;
}

.meta-footer p { margin-bottom: 4px; }

/* ── Legal tables ── */
.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0 28px;
  font-size: 14px;
  line-height: 1.65;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.legal-table thead th {
  font-weight: 600;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--cream-dark);
  border-bottom: 2px solid var(--blue);
  padding-top: 16px;
  padding-bottom: 16px;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(245, 239, 230, 0.5);
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table td strong { color: var(--blue); }

@media (max-width: 768px) {
  .legal-table { font-size: 13px; }
  .legal-table th,
  .legal-table td { padding: 11px 14px; }
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
footer {
  background: var(--cream-dark);
  padding: 80px 40px 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 64px;
}

.footer-brand .logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--slate-light);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  nav ul { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }
  .menu-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    transition: 0.3s;
  }

  .page-hero { padding: 120px 20px 60px; min-height: 40vh; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  padding: 80px 40px;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 400;
}

.mobile-menu a:hover { color: var(--gold); }
