.license-page { min-height: 100vh; }
.license-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.88);
  backdrop-filter: blur(16px);
}
body.light .license-header { background: rgba(245, 247, 251, 0.9); }
.license-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.license-brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Exo 2", "Segoe UI", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .12em; }
.license-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 10px; background: white; }
.license-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.license-back-link { flex: 0 0 auto; padding: 10px 15px; font-size: .78rem; }
.license-main { padding-top: clamp(42px, 8vw, 92px); padding-bottom: 68px; }
.license-hero { max-width: 900px; margin: 0 auto 34px; text-align: center; animation: license-enter .55s ease both; }
.license-hero .eyebrow { margin-bottom: 14px; }
.license-hero h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; }
.license-intro { max-width: 720px; margin: 18px auto 26px; color: var(--muted); font-size: clamp(.96rem, 1.7vw, 1.08rem); }
.license-notice {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 19px 24px;
  border: 1px solid rgba(241, 59, 62, .32);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-soft), var(--panel));
  box-shadow: 0 18px 52px var(--shadow);
}
.license-notice strong { color: var(--text); font-size: clamp(1rem, 2vw, 1.2rem); }
.license-notice span { color: var(--muted); font-size: .86rem; }
.license-page a:not(.button) { color: var(--red-strong); text-decoration: underline; text-decoration-color: rgba(255, 91, 96, .4); text-underline-offset: 3px; }
.license-page a:focus-visible { outline: 2px solid var(--red-strong); outline-offset: 4px; border-radius: 3px; }
.license-contents {
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  margin: 0 auto 28px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.license-contents span { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.license-contents a { font-size: .75rem; }
.license-document {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 54px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: 0 25px 80px var(--shadow);
  animation: license-enter .65s .06s ease both;
}
.license-document section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.license-document section:first-child { padding-top: 0; }
.license-document section:last-child { padding-bottom: 0; border-bottom: 0; }
.license-section-number { padding-top: 5px; color: var(--red-strong); font-family: "Exo 2", "Segoe UI", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.license-document h2 { margin: 0 0 10px; color: var(--text); font-size: clamp(1.08rem, 2.5vw, 1.35rem); line-height: 1.35; letter-spacing: -.02em; }
.license-document p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.85; }
.license-document p:last-child { margin-bottom: 0; }
.license-document strong { color: var(--muted-strong); }
.license-facts { display: grid; gap: 7px; margin: 0 0 14px; padding-left: 19px; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.license-closing {
  display: flex;
  max-width: 960px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px auto 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.license-closing p { max-width: 640px; margin: 0; color: var(--muted); font-size: .9rem; }
.license-closing .button { flex: 0 0 auto; padding: 11px 16px; }
.license-footer { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding: 22px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-align: center; }
.license-footer p { margin: 0; }
@keyframes license-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 620px) {
  .license-header-inner { min-height: 64px; }
  .license-brand { gap: 9px; font-size: .86rem; }
  .license-brand-mark { width: 34px; height: 34px; }
  .license-back-link { padding: 9px 11px; font-size: .72rem; }
  .license-document { border-radius: 16px; }
  .license-document section { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 20px 0; }
  .license-section-number { font-size: .68rem; }
  .license-document p { font-size: .87rem; }
  .license-closing { align-items: stretch; flex-direction: column; padding: 18px; }
  .license-closing .button { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .license-hero, .license-document { animation: none; }
}
