:root {
  --ink: #1d2935;
  --muted: #657282;
  --line: #dfe6ee;
  --surface: #ffffff;
  --soft: #f5f7fa;
  --brand: #004a8f;
  --brand-dark: #003767;
  --accent: #d9272e;
  --accent-soft: #fff1f2;
  --shadow: 0 14px 40px rgba(22, 44, 70, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.legal-hero-inner,
.legal-main,
.site-footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero-inner {
  min-height: 300px;
  padding: 26px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(0, 74, 143, 0.12);
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.top-links a {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.top-links a:hover,
.top-links a:focus-visible {
  border-color: rgba(0, 74, 143, 0.32);
  background: #f2f7fc;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy p:first-child {
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--brand);
}

.hero-copy p:last-child {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
}

.legal-main {
  padding: 34px 0 42px;
}

.notice {
  margin-bottom: 22px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  background: var(--accent-soft);
  color: #4f5f6e;
}

.notice i {
  color: var(--accent);
}

.notice p {
  margin: 0;
  line-height: 1.45;
}

.hotel-context {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hotel-context img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
}

.hotel-context strong,
.hotel-context span,
.hotel-context small {
  display: block;
}

.hotel-context strong {
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 1.1rem;
}

.hotel-context span,
.hotel-context small {
  color: var(--muted);
  line-height: 1.45;
}

.hotel-context small span:not(:empty) + span:not(:empty)::before {
  content: " · ";
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.summary-card,
.accordion-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 24px;
  border-top: 4px solid var(--brand);
  position: sticky;
  top: 18px;
}

.summary-card h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.summary-card p,
.summary-card li {
  color: var(--muted);
  line-height: 1.5;
}

.summary-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.summary-card a,
.accordion-content a,
.site-footer a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.summary-card a:hover,
.summary-card a:focus-visible,
.accordion-content a:hover,
.accordion-content a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
}

.accordion-list {
  overflow: hidden;
}

details {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

details[open] {
  background: #fbfdff;
}

details:last-child {
  border-bottom: 0;
}

summary {
  min-height: 70px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

summary i {
  color: var(--brand);
  font-size: 1.22rem;
}

.accordion-content {
  padding: 0 24px 24px 66px;
  color: var(--muted);
  line-height: 1.58;
}

.accordion-content p {
  margin: 0 0 12px;
}

.accordion-content ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
}

.site-footer {
  min-height: 58px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 860px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero-inner,
  .legal-main,
  .site-footer {
    width: min(100% - 24px, 1060px);
  }

  .top-nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    justify-content: flex-start;
  }

  summary {
    grid-template-columns: 24px 1fr 18px;
    padding: 18px;
  }

  .accordion-content {
    padding: 0 18px 20px 56px;
  }
}
