:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #082f3a;
  --ink-soft: #244a52;
  --muted: #5a6f75;
  --teal: #078389;
  --teal-dark: #075766;
  --teal-soft: #e1f4f1;
  --orange: #f17713;
  --orange-soft: #fff1df;
  --paper: #ffffff;
  --mist: #f6f9f8;
  --line: #d7e6e4;
  --shadow: 0 18px 50px rgba(4, 55, 66, 0.13);
  background: var(--mist);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 10%, rgba(7, 131, 137, 0.12), transparent 28%),
    radial-gradient(circle at 8% 28%, rgba(241, 119, 19, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 48%, #edf6f4 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(241, 119, 19, 0.75);
  outline-offset: 3px;
}

p,
li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

p {
  margin: 0 0 14px;
}

strong {
  color: var(--ink);
}

.legal-shell {
  min-height: 100vh;
}

.legal-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(8, 47, 58, 0.1);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 74px;
  max-width: min(390px, 64vw);
  object-fit: contain;
  width: auto;
}

.legal-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.legal-nav a {
  border: 1px solid rgba(8, 47, 58, 0.14);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 14px;
}

.legal-nav a:hover {
  border-color: rgba(7, 131, 137, 0.45);
  color: var(--teal-dark);
}

.legal-main {
  margin: 0 auto;
  max-width: 1080px;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 40px) 72px;
}

.legal-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.legal-hero-split {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
}

.hero-visual {
  border: 1px solid rgba(8, 47, 58, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  width: 100%;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.96;
  margin: 0;
  overflow-wrap: break-word;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.55;
  margin: 0;
  max-width: 780px;
}

.notice {
  align-items: flex-start;
  background: rgba(255, 241, 223, 0.86);
  border: 1px solid rgba(241, 119, 19, 0.24);
  border-radius: 20px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.notice strong {
  color: #9b4207;
}

.notice p {
  margin: 0;
}

.legal-document {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(8, 47, 58, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.doc-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(22px, 4vw, 36px);
}

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

.doc-section h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  margin: 0 0 14px;
}

.doc-section h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 18px 0 8px;
}

.doc-section a {
  color: var(--teal-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

blockquote {
  background: linear-gradient(135deg, rgba(225, 244, 241, 0.9), rgba(255, 241, 223, 0.7));
  border-left: 5px solid var(--orange);
  border-radius: 18px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 800;
  line-height: 1.55;
  margin: 18px 0;
  padding: 18px 20px;
}

.button-link {
  align-items: center;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-radius: 999px;
  color: #ffffff !important;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none !important;
}

.button-link:hover {
  transform: translateY(-1px);
}

.disabled-link {
  background: #dfe9e7;
  color: #536a70 !important;
  cursor: not-allowed;
  pointer-events: none;
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.address,
.fact-list {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

.fact-list {
  display: grid;
  gap: 8px;
}

.fact-list div {
  display: grid;
  gap: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tag-list li {
  background: var(--teal-soft);
  border: 1px solid rgba(7, 131, 137, 0.14);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 9px 12px;
}

.plain-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.plain-list li + li {
  margin-top: 8px;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 18px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(225, 244, 241, 0.72);
  color: var(--ink);
  font-weight: 900;
}

tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  background: rgba(241, 119, 19, 0.11);
  border-radius: 999px;
  color: #9b4207;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 4px 9px;
  white-space: nowrap;
}

.legal-footer {
  border-top: 1px solid rgba(8, 47, 58, 0.1);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 34px auto 0;
  max-width: 1080px;
  padding: 24px clamp(20px, 5vw, 40px) 36px;
}

.legal-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.footer-logo {
  display: block;
  height: 68px;
  max-width: min(360px, 76vw);
  object-fit: contain;
  width: auto;
}

.footer-brand span {
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .brand-logo {
    height: 62px;
    max-width: 300px;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-nav a {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .legal-document {
    border-radius: 22px;
  }

  .legal-hero-split {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    border-radius: 22px;
  }
}

@media (max-width: 520px) {
  .legal-main {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
    line-height: 1.05;
  }
}
