
:root{
  --navy:#173257;
  --paper:#faf8f3;
  --cream:#fffaf1;
  --muted:#6f7988;
  --line:#e8dfd2;
  font-family:"Noto Sans JP",sans-serif;
  color:#182d49;
  background:#eae7e1;
  color-scheme:light;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  background:#eae7e1;
}

body{
  font-size:15px;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--navy)}

.legal-shell{
  width:min(680px,100%);
  min-height:100vh;
  margin:0 auto;
  padding:
    max(24px,env(safe-area-inset-top))
    22px
    calc(48px + env(safe-area-inset-bottom));
  background:var(--paper);
  box-shadow:0 0 40px rgba(23,47,81,.06);
}

.legal-header{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:3px 0 26px;
  border-bottom:1px solid var(--line);
}

.back-link{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--navy);
  font:400 34px/1 Arial,sans-serif;
}

.legal-kicker{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
}

h1{
  margin:0;
  font-family:"Noto Serif JP",serif;
  font-size:29px;
  line-height:1.4;
  color:var(--navy);
}

.legal-intro{
  margin:22px 0;
  padding:18px 19px;
  border-radius:16px;
  border:1px solid #eddcc2;
  background:linear-gradient(135deg,#fff5e6,#fffdf9);
}

.legal-intro p{margin:0}

.legal-section{
  padding:21px 2px 22px;
  border-bottom:1px solid var(--line);
}

.legal-section h2{
  margin:0 0 10px;
  font-size:17px;
  line-height:1.6;
  color:var(--navy);
}

.legal-section p{
  margin:0 0 10px;
}

.legal-section p:last-child{margin-bottom:0}

.legal-section ul{
  margin:10px 0 0;
  padding-left:1.4em;
}

.legal-section li{
  margin:5px 0;
}

.legal-footer{
  padding:24px 0 0;
  color:var(--muted);
  font-size:13px;
}

.legal-footer p{
  margin:0 0 10px;
}

.legal-footer a{
  font-weight:700;
}

@media(max-width:480px){
  body{font-size:14px}
  .legal-shell{
    padding-left:18px;
    padding-right:18px;
  }
  h1{font-size:25px}
  .legal-section h2{font-size:16px}
}
