:root {
  --forest: #0E4B3D;
  --forest-2: #08372D;
  --gold: #C8A24A;
  --sage: #D9E6DE;
  --cream: #F8F6F0;
  --cream-2: #FFFDF8;
  --charcoal: #333333;
  --muted: rgba(51, 51, 51, 0.68);
  --teal: #6FAFA6;
  --white: #FFFFFF;

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --shadow-soft: 0 18px 45px rgba(14, 75, 61, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 10% 0%, rgba(200, 162, 74, 0.12) 0%, transparent 34%),
    radial-gradient(circle at 90% 8%, rgba(111, 175, 166, 0.16) 0%, transparent 36%),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

.terms-container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* Header */
.terms-header {
  padding: 22px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--teal) 72%, var(--gold) 100%);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(14, 75, 61, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  color: var(--forest);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-text em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.back-link {
  color: var(--forest);
  border: 1px solid rgba(14, 75, 61, 0.16);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.65);
}

.back-link:hover {
  background: var(--forest);
  color: var(--white);
}

/* Hero */
.terms-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  line-height: 1.05;
}

h1 {
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.last-updated {
  margin-top: 22px;
  color: var(--forest);
  font-weight: 800;
}

/* Content Layout */
.terms-content {
  padding: 20px 0 90px;
}

.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-nav {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 75, 61, 0.08);
  box-shadow: 0 12px 30px rgba(14, 75, 61, 0.08);
}

.page-nav h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.page-nav a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 0;
}

.page-nav a:hover {
  color: var(--forest);
}

.terms-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 75, 61, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 58px);
}

.terms-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(14, 75, 61, 0.10);
}

h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h3 {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--forest);
  margin: 18px 0 6px;
}

p {
  color: var(--muted);
  margin-bottom: 12px;
}

ul {
  color: var(--muted);
  padding-left: 1.25rem;
  margin-top: 8px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--forest);
}

.inline-link {
  color: var(--forest);
  font-weight: 900;
  border-bottom: 2px solid rgba(200, 162, 74, 0.65);
}

.inline-link:hover {
  color: var(--teal);
}

/* Notice */
.notice-box {
  padding: 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 10%, rgba(200, 162, 74, 0.18), transparent 34%),
    linear-gradient(135deg, var(--forest), var(--forest-2));
  border-top: none !important;
}

.notice-box h2,
.notice-box h3,
.notice-box strong {
  color: var(--white);
}

.notice-box p {
  color: rgba(255, 255, 255, 0.84);
}

/* Contact */
.contact-card {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(14, 75, 61, 0.10);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.contact-card a {
  color: var(--forest);
  font-weight: 900;
}

/* Footer */
.terms-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(14, 75, 61, 0.08);
  background: var(--cream-2);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Shared Footer */
.footer {
  padding: 64px 32px 30px;
  background: var(--forest-2);
  color: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.8fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text em {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.65;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-cols h4 {
  margin-bottom: 16px;
  color: var(--gold);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  transition: color 220ms ease, transform 220ms ease;
}

.footer-cols a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 42px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .page-nav {
    position: static;
  }

  .page-nav a {
    display: inline-block;
    margin-right: 14px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .terms-hero {
    padding-top: 42px;
    text-align: left;
  }

  h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .terms-card {
    border-radius: 24px;
  }

  .brand-text em {
    display: none;
  }

  .back-link {
    width: 100%;
    text-align: center;
  }

  .notice-box {
    padding: 24px;
  }
}

@media (max-width: 640px) { 
    .footer {
  padding: 54px 22px 26px;
}

.footer-inner {
  grid-template-columns: 1fr;
  gap: 34px;
}

.footer-cols {
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer-bottom {
  flex-direction: column;
}
}

/* =========================================================
Floating Start Button
========================================================= */

.floating-start-button {
position: fixed;
right: 22px;
bottom: 22px;
z-index: 98;

display: inline-flex;
align-items: center;
justify-content: center;

padding: 13px 20px;
border-radius: var(--radius-pill, 999px);
background: var(--teal, #6FAFA6);
color: var(--white, #ffffff);
font-weight: 900;
text-decoration: none;
box-shadow: 0 18px 42px rgba(14, 75, 61, 0.24);

opacity: 0;
visibility: hidden;
transform: translateY(18px);
pointer-events: none;

transition:
opacity 220ms ease,
visibility 220ms ease,
transform 220ms ease,
background 220ms ease;
}

.floating-start-button.is-visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: auto;
}

.floating-start-button:hover {
background: var(--forest, #0E4B3D);
color: var(--white, #ffffff);
}

/* Mobile */
@media (max-width: 720px) {
.floating-start-button {
left: 20px;
right: 20px;
bottom: 18px;
width: auto;
text-align: center;
}
}

@media (max-width: 420px) {
.floating-start-button {
left: 14px;
right: 14px;
bottom: 14px;
}
}


/* =========================================================
Footer Social Links
========================================================= */

.footer-social {
display: flex;
align-items: center;
gap: 12px;
margin-top: 22px;
}

.footer-social a {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;

border-radius: 50%;
background: rgba(255, 255, 255, 0.10);
border: 1px solid rgba(255, 255, 255, 0.18);
color: var(--white, #ffffff);

font-size: 18px;
font-weight: 900;
line-height: 1;
text-decoration: none;

transition:
background 220ms ease,
color 220ms ease,
transform 220ms ease,
border-color 220ms ease;
}

.footer-social a:hover {
background: var(--gold, #c8a24a);
border-color: var(--gold, #c8a24a);
color: var(--forest, #0e4b3d);
transform: translateY(-3px);
}

.footer-social a:focus-visible {
outline: 3px solid rgba(200, 162, 74, 0.45);
outline-offset: 4px;
}

@media (max-width: 640px) {
.footer-social {
margin-top: 18px;
}
}

/* =========================================================
Footer Social Links
========================================================= */

.footer-social {
display: flex;
align-items: center;
gap: 14px;
margin-top: 24px;
}

.footer-social a {
width: 34px;
height: 34px;

display: inline-flex;
align-items: center;
justify-content: center;

border-radius: 50%;
background: rgba(255, 255, 255, 0.92);
color: var(--forest, #0e4b3d);
text-decoration: none;

box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);

transition:
background 220ms ease,
transform 220ms ease,
box-shadow 220ms ease;
}

.footer-social a:hover {
background: var(--gold, #c8a24a);
transform: translateY(-3px);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.footer-social img {
width: 17px;
height: 17px;
display: block;
object-fit: contain;
opacity: 0.78;
}

.footer-social a:hover img {
opacity: 1;
}

@media (max-width: 640px) {
.footer-social {
margin-top: 20px;
}
}
