:root {
  --navy: #0b1f3a;
  --navy-dark: #060f1e;
  --orange: #f4631e;
  --orange-dark: #d4521a;
  --light: #f4f7fb;
  --text-soft: #667085;
  --line: rgba(11, 31, 58, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito Sans", sans-serif;
  color: var(--navy);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.team-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 99, 30, 0.22), transparent 24rem),
    radial-gradient(circle at top center, rgba(244, 99, 30, 0.12), transparent 18rem),
    linear-gradient(180deg, #1e0f09 0%, #0b1f3a 44%, #10294d 100%);
  overflow: hidden;
}

.team-shell {
  position: relative;
  min-height: 100vh;
  padding: 0;
}

.team-backdrop,
.team-overlay {
  position: absolute;
  inset: 0;
}

.team-backdrop {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 45%),
    radial-gradient(circle at bottom right, rgba(244, 99, 30, 0.26), transparent 22rem),
    radial-gradient(circle at top center, rgba(244, 99, 30, 0.14), transparent 16rem);
}

.team-overlay {
  background:
    linear-gradient(to bottom, rgba(68, 29, 11, 0.22), rgba(6, 15, 30, 0.48) 28%, rgba(6, 15, 30, 0.62)),
    linear-gradient(to right, rgba(244, 99, 30, 0.06), transparent 30%, transparent 70%, rgba(244, 99, 30, 0.06));
}

.team-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.team-brand-logo {
  position: fixed;
  top: 2rem;
  left: 50%;
  z-index: 4;
  display: block;
  width: min(11.5rem, 30vw);
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  filter:
    drop-shadow(0 12px 28px rgba(244, 99, 30, 0.22))
    drop-shadow(0 22px 50px rgba(0, 0, 0, 0.38));
}

.legal-kicker {
  display: inline-block;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.legal-header h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 9vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.legal-header p,
.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 100vh;
}

.team-card {
  position: relative;
  min-height: 33.333vh;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 0;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-card:hover {
  transform: scale(1.015);
  box-shadow: inset 0 0 0 1px rgba(244, 99, 30, 0.18);
}

.team-card-bg,
.team-card-ov {
  position: absolute;
  inset: 0;
}

.team-card-bg {
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.team-card:hover .team-card-bg {
  transform: scale(1.05);
}

.team-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.team-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.legal-page {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--navy);
}

.legal-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.legal-header {
  padding: 2rem 0 2.25rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-back:hover {
  color: var(--orange);
}

.legal-header h1 {
  color: var(--navy);
}

.legal-header p {
  max-width: 48rem;
  color: var(--text-soft);
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 22px 60px rgba(11, 31, 58, 0.08);
  padding: 1rem 1.25rem;
}

.legal-section {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 0.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1;
}

.legal-section p {
  margin: 0;
  color: #4f5d73;
}

.legal-section ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: #4f5d73;
}

.legal-section li + li {
  margin-top: 0.45rem;
}

@media (min-width: 840px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-card {
    min-height: 100vh;
    padding: 3rem 2.5rem;
  }

  .legal-shell {
    width: min(1100px, calc(100% - 3rem));
    padding-top: 2.5rem;
  }

  .legal-card {
    padding: 1.2rem 2rem;
  }
}

@media (max-width: 839px) {
  .team-brand-logo {
    top: 1.25rem;
    width: min(8.75rem, 36vw);
  }
}
