/* Terms page CSS (clean, readable, responsive)
   Use by adding: <link rel="stylesheet" href="terms.css"> */

:root{
  --bg: #0b0f17;
  --card: rgba(255,255,255,0.06);
  --cardBorder: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.56);
  --link: rgba(130, 200, 255, 0.95);
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 18px;
  --max: 980px;
  --focus: rgba(130,200,255,0.35);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(92, 140, 255, 0.25), transparent 60%),
    radial-gradient(700px 450px at 90% 20%, rgba(0, 200, 160, 0.18), transparent 55%),
    radial-gradient(800px 520px at 40% 90%, rgba(255, 180, 0, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main{
  max-width: var(--max);
  margin: 40px auto;
  padding: 28px 22px;
}

.terms-shell{
  background: var(--card);
  border: 1px solid var(--cardBorder);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 26px 22px;
  backdrop-filter: blur(10px);
}

.terms-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.terms-title{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.terms-subtitle{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

p{
  margin: 10px 0;
  color: var(--text);
}

strong{ color: rgba(255,255,255,0.96); }

a{
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(130,200,255,0.35);
}
a:hover{
  border-bottom-color: rgba(130,200,255,0.85);
}
a:focus{
  outline: none;
}
a:focus-visible{
  box-shadow: 0 0 0 4px var(--focus);
  border-radius: 8px;
}

ol{
  margin: 14px 0 10px 22px;
  padding: 0;
}
ol > li{
  margin: 8px 0;
  color: var(--text);
}

ol ol{
  margin-top: 8px;
  margin-bottom: 8px;
}

hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 18px 0;
}

code{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 6px;
  border-radius: 8px;
  color: rgba(255,255,255,0.92);
}

::selection{
  background: rgba(130,200,255,0.25);
}

/* Buttons */
.terms-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
}

.btn:focus{ outline: none; }
.btn:focus-visible{ box-shadow: 0 0 0 4px var(--focus); }

.btn-primary{
  color: rgba(255,255,255,0.95);
  background: linear-gradient(135deg, rgba(92,140,255,0.95), rgba(0,200,160,0.85));
  border: 1px solid rgba(255,255,255,0.10);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0px) scale(0.99); }

.btn-ghost{
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:active{ transform: translateY(0px) scale(0.99); }

.btn svg{
  width: 16px;
  height: 16px;
  opacity: 0.95;
}

/* Small screens */
@media (max-width: 640px){
  main{ margin: 18px auto; padding: 18px 14px; }
  .terms-shell{ padding: 18px 14px; }
  .terms-header{ align-items: flex-start; flex-direction: column; }
}