@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --bg: #f5f5f7;
  --hero-bg: #f3eee8;
  --text: #1f2b44;
  --text-dark: #1e2940;
  --muted: #646b7c;
  --muted-2: #8f97a7;
  --line: #e6e0da;
  --line-2: #e7e7ec;
  --white: #ffffff;
  --purple: #8f6df8;
  --purple-dark: #7d5bef;
  --purple-soft: #efe7ff;
  --teal: #65d5c4;
  --shadow: 0 18px 50px rgba(31, 43, 68, 0.08);
  --shadow-soft: 0 12px 30px rgba(31, 43, 68, 0.08);
  --radius-xl: 38px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1320px;
}

*{
  box-sizing: border-box;
}

body{
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img{
  max-width: 100%;
  display: block;
}

a{
  text-decoration: none;
  color: inherit;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
/* =========================
   LEGAL PAGE HEADER
========================= */
.legal-site-header{
  background: #ffffff;
  border-bottom: 1px solid rgba(31,43,68,0.05);
  position: sticky;
  top: 0;
  z-index: 80;
}

.legal-header-inner{
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
}

.legal-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.legal-brand-mark{
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 4px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.legal-brand-mark span{
  display: block;
  border-radius: 4px;
}

.legal-brand-mark span:nth-child(1){ background:#53d8a7; }
.legal-brand-mark span:nth-child(2){ background:#8d6df8; }
.legal-brand-mark span:nth-child(3){ background:#f6486c; }
.legal-brand-mark span:nth-child(4){ background:#f7c531; }

.legal-brand-text{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e2d49;
}

.legal-page-nav{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.legal-page-nav a{
  font-size: 15px;
  font-weight: 600;
  color: #101b35;
  line-height: 1.4;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.legal-page-nav a:hover{
  color: #8f6df8;
}

.legal-page-nav a.active{
  color: #8f6df8;
}

/* =========================
   TABLET
========================= */
@media (max-width: 991px){
  .legal-site-header{
    position: static;
  }

  .legal-header-inner{
    min-height: auto;
    display: block;
    padding: 18px 0 16px;
  }

  .legal-brand{
    margin-bottom: 16px;
  }

  .legal-page-nav{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
  }

  .legal-page-nav a{
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(31,43,68,0.08);
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
  }

  .legal-page-nav a.active{
    color: #8f6df8;
    background: rgba(143,109,248,0.06);
    border-color: rgba(143,109,248,0.20);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 575px){
  .legal-header-inner{
    padding: 16px 0 14px;
  }

  .legal-brand{
    gap: 10px;
    margin-bottom: 14px;
  }

  .legal-brand-text{
    font-size: 18px;
  }

  .legal-page-nav{
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .legal-page-nav a{
    min-height: 42px;
    font-size: 13px;
    padding: 9px 10px;
    border-radius: 10px;
  }
}

.legal-nav a{
  font-size: 15px;
  font-weight: 600;
  color: #101b35;
  transition: color .2s ease;
}

.legal-nav a:hover,
.legal-nav a.active{
  color: var(--purple);
}

/* Hero */
.page-hero{
  padding: 0 0 28px;
  background: #fff;
}

.page-hero-wrap{
  background: linear-gradient(180deg, #f4efe9 0%, #f2ede7 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.page-hero-inner{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 62px;
  position: relative;
  z-index: 2;
}

.page-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(143,109,248,0.16);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}

.page-badge::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.page-title{
  margin: 0 0 18px;
  max-width: 860px;
  color: var(--text-dark);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.page-desc{
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* Main */
.page-main{
  padding: 42px 0 80px;
}

.page-grid{
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 26px;
  align-items: start;
}

.legal-card,
.side-card{
  background: #fff;
  border: 1px solid rgba(31,43,68,0.06);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.legal-card{
  padding: 30px 28px;
}

.side-card{
  padding: 22px 20px;
  position: sticky;
  top: 96px;
}

.legal-card + .legal-card,
.side-card + .side-card{
  margin-top: 18px;
}

.legal-card h2,
.legal-card h3{
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.legal-card h2{
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 800;
}

.legal-card h3{
  font-size: 20px;
  margin: 26px 0 12px;
  font-weight: 800;
}

.legal-card p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.legal-card ul{
  margin: 0 0 18px 18px;
  padding: 0;
}

.legal-card li{
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.lead-box{
  background: linear-gradient(180deg, rgba(143,109,248,0.08) 0%, rgba(101,213,196,0.08) 100%);
  border: 1px solid rgba(143,109,248,0.10);
  border-radius: 18px;
  padding: 18px;
  margin: 20px 0;
}

.lead-box strong{
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 17px;
}

.note-box{
  background: #fafbff;
  border: 1px solid #e7eaf3;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 18px;
}

.note-box p:last-child{
  margin-bottom: 0;
}

.side-card h3{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.side-card p,
.side-card li{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.side-card ul{
  margin: 0 0 0 18px;
  padding: 0;
}

.quick-links{
  display: grid;
  gap: 10px;
}

.quick-links a{
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(31,43,68,0.08);
  background: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  transition: all .2s ease;
}

.quick-links a:hover{
  border-color: rgba(143,109,248,0.30);
  color: var(--purple);
  transform: translateY(-1px);
}

.cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(143,109,248,0.24);
}

.contact-list{
  display: grid;
  gap: 12px;
}

.contact-item{
  padding: 14px 16px;
  background: #fafbff;
  border: 1px solid #e7eaf3;
  border-radius: 14px;
}

.contact-item strong{
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 14px;
}

.page-footer{
  background: #fff;
  border-top: 1px solid rgba(31,43,68,0.06);
  padding: 28px 0;
}

.page-footer-inner{
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.page-footer-text{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-footer-links{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-footer-links a{
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.page-footer-links a:hover{
  color: var(--purple);
}

@media (max-width: 1199px){
  .page-grid{
    grid-template-columns: 1fr;
  }

  .side-card{
    position: static;
    top: auto;
  }
}

@media (max-width: 767px){
  .container{
    width: calc(100% - 20px);
  }

  .header-inner{
    min-height: 70px;
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
  }

  .legal-nav{
    gap: 14px;
    justify-content: flex-start;
  }

  .page-hero-wrap{
    border-radius: 0;
  }

  .page-hero-inner{
    width: calc(100% - 20px);
    padding: 40px 0 34px;
  }

  .page-title{
    font-size: 34px;
    line-height: 1.10;
  }

  .page-desc{
    font-size: 14px;
    line-height: 1.8;
  }

  .page-main{
    padding: 22px 0 56px;
  }

  .legal-card{
    padding: 22px 16px;
    border-radius: 18px;
  }

  .side-card{
    padding: 18px 16px;
    border-radius: 18px;
  }

  .legal-card h2{
    font-size: 24px;
  }

  .legal-card h3{
    font-size: 18px;
  }
}