:root {
  --navy: #021434;
  --navy-2: #042a62;
  --blue: #0267e6;
  --cyan: #0ab1f8;
  --ink: #14283b;
  --muted: #607487;
  --line: #dce7ee;
  --soft: #f4f8fb;
  --success: #0267e6;
  --danger: #b4233d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--soft); }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }

.site-header {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { font-weight: 900; font-size: 1.18rem; letter-spacing: .16em; }
.top-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.top-nav a { color: #bfd5e8; font-size: .82rem; font-weight: 750; text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: #fff; }
.top-nav .contact-link {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(113,223,255,.48);
  border-radius: 9px;
  background: rgba(10,177,248,.1);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(10,177,248,.28), transparent 28%),
    radial-gradient(circle at 15% 90%, rgba(2,103,230,.20), transparent 30%),
    linear-gradient(145deg, #021434 0%, #042a62 58%, #086caa 100%);
}
.legal-hero::after {
  content: "";
  width: 410px;
  height: 410px;
  position: absolute;
  right: -210px;
  bottom: -250px;
  border: 1px solid rgba(131,224,255,.20);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(131,224,255,.04), 0 0 0 90px rgba(131,224,255,.025);
}
.hero-inner {
  width: min(940px, calc(100% - 40px));
  min-height: 330px;
  margin: 0 auto;
  padding: clamp(62px, 8vw, 92px) 0;
  position: relative;
  z-index: 1;
}
.eyebrow { margin: 0 0 19px; color: #7fdfff; font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.legal-hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.1rem); line-height: .98; letter-spacing: -.055em; }
.legal-hero p { max-width: 690px; margin: 23px 0 0; color: #c8ddea; font-size: 1.02rem; line-height: 1.7; }
.effective-date { display: inline-flex; margin-top: 24px; padding: 8px 11px; color: #dff7ff; border: 1px solid rgba(129,225,255,.33); border-radius: 999px; background: rgba(2,20,52,.24); font-size: .76rem; font-weight: 800; }

.legal-main { background: linear-gradient(180deg, #f5f9fc 0, #fff 260px); }
.legal-wrap { width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.notice, .company-card {
  margin-bottom: 26px;
  padding: clamp(21px, 3vw, 29px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(2,20,52,.055);
}
.notice { border-left: 4px solid var(--cyan); }
.notice strong { color: var(--navy); }
.notice p { margin: 7px 0 0; }
.company-card h2, .legal-section h2 {
  margin: 0 0 17px;
  color: var(--navy);
  font-size: 1.27rem;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.company-card h2, .legal-section h2 { display: flex; align-items: flex-start; gap: 12px; }
.company-card h2::before, .legal-section h2::before {
  content: "";
  width: 4px;
  height: 24px;
  flex: 0 0 4px;
  margin-top: 1px;
  border-radius: 4px;
  background: linear-gradient(var(--blue), var(--cyan));
}
.company-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.company-item { padding: 15px; border: 1px solid #e2ebf1; border-radius: 11px; background: #f8fbfd; }
.company-item.wide { grid-column: 1 / -1; }
.company-item small { display: block; margin-bottom: 6px; color: #718696; font-size: .67rem; font-weight: 900; letter-spacing: .11em; }
.company-item b { color: #1d3447; font-size: .88rem; line-height: 1.45; }
.legal-section {
  padding: 31px 2px;
  border-bottom: 1px solid #e7eef3;
}
.legal-section p, .notice p, .company-card p, .legal-section li { color: #536a7c; font-size: .96rem; line-height: 1.75; }
.legal-section p { margin: 0 0 13px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 11px 0 14px; padding-left: 23px; }
.legal-section li + li { margin-top: 7px; }
.term { color: var(--navy); font-weight: 800; }
.data-table { width: 100%; margin: 20px 0; border-collapse: collapse; border: 1px solid var(--line); font-size: .88rem; }
.data-table th, .data-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
.data-table th { color: var(--navy); background: #eef6fa; }
.data-table td { color: #536a7c; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .72fr); gap: 24px; align-items: start; }
.contact-card, .contact-aside { padding: clamp(22px, 3vw, 31px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(2,20,52,.065); }
.contact-card h2, .contact-aside h2 { margin: 0 0 9px; color: var(--navy); font-size: 1.35rem; }
.contact-card > p, .contact-aside p { margin: 0 0 23px; color: var(--muted); line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .consent label { color: #314a5d; font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  border: 1px solid #cbdbe5;
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(10,177,248,.12); }
.consent { margin-top: 17px; display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.consent label { color: #617687; font-weight: 500; line-height: 1.55; }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.primary-button {
  min-height: 51px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 27px rgba(2,103,230,.22);
  font-weight: 850;
  cursor: pointer;
}
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 22px; color: var(--danger); font-size: .84rem; font-weight: 700; }
.form-message.success { color: var(--success); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-aside dl { margin: 0; }
.contact-aside dt { margin-top: 18px; color: #718696; font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.contact-aside dd { margin: 6px 0 0; color: #314a5d; font-size: .89rem; line-height: 1.6; }
.contact-aside dd a { font-weight: 800; }

.site-footer { padding: 34px clamp(20px, 4vw, 56px); color: #a9c2d4; background: var(--navy); }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 28px; align-items: start; }
.footer-brand { color: #fff; font-size: 1rem; font-weight: 900; letter-spacing: .14em; }
.footer-company { max-width: 610px; margin: 10px 0 0; font-size: .75rem; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { color: #bcd2e1; font-size: .76rem; font-weight: 750; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .top-nav { gap: 12px 16px; }
  .hero-inner { min-height: 280px; }
  .company-grid, .contact-layout { grid-template-columns: 1fr; }
  .company-item.wide { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-header { padding: 14px 18px; }
  .top-nav .contact-link { width: 100%; justify-content: center; }
  .hero-inner, .legal-wrap { width: calc(100% - 32px); }
  .legal-hero h1 { font-size: 2.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .data-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
