*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"PingFang SC","Helvetica Neue",Arial,sans-serif;color:#043431;background:#fff;-webkit-font-smoothing:antialiased}

/* ===== Page: Download ===== */
.page-download{position:relative;width:100%;min-height:100vh;background:url('../img/bg.jpg') center/cover no-repeat;display:flex;flex-direction:column;justify-content:center;align-items:center}
.dl-content{flex:1;display:flex;flex-direction:column;justify-content:center;max-width:1139px;margin:0 auto;padding:0px 40px 0;width:100%}
.dl-logo{height:36px;margin-bottom:99px}
.dl-logo img{height:100%}
.dl-title{font-size:56px;font-weight:200;color:#fff;margin-bottom:48px;line-height:1.3}
.dl-buttons{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:320px}
.dl-btn{    
        display:flex;align-items:center;justify-content:flex-start;gap:10px;height:80px;font-weight:600;border-radius:43px;
        font-size:16px;cursor:pointer;text-decoration:none;transition:all .25s ease;border:1px solid rgba(255,255,255,.2);
        background:transparent;color:#F6F8F8;padding:0 30px;white-space:nowrap}
.dl-btn img{height:26px}
.dl-btn.primary{background:#F6F8F8;border-color:#F6F8F8;color:#043431}
.dl-btn.primary:hover{background:#fff;border-color:#fff}
.dl-btn:not(.primary):hover{background:rgba(246,248,248,.1)}

/* Footer (download page) */
.dl-footer{max-width:1139px;margin:0 auto;padding:0 40px 32px;width:100%}
.dl-divider{height:1px;background:rgba(255,255,255,.1);margin-bottom:20px}
.dl-footer-inner{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px}
.dl-footer-left{display:flex;flex-direction:column;gap:12px;font-size:12px;color:#789695}
.dl-footer-links{display:flex;gap:24px}
.dl-footer-left a{color:#789695;text-decoration:none;transition:color .2s}
.dl-footer-left a:hover{color:#F6F8F8}

/* Language Switcher */
.lang-switch{position:relative}
.lang-btn{display:flex;align-items:center;gap:8px;height:46px;padding:0 20px;border-radius:23px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#F6F8F8;font-size:14px;cursor:pointer;transition:all .2s;font-family:inherit}
.lang-btn:hover{background:rgba(246,248,248,.1)}
.lang-btn img{height:20px;transition:transform .2s}
.lang-dropdown{position:absolute;bottom:calc(100% + 10px);right:0;width:140px;background:#F6F8F8;border-radius:15px;padding:8px;display:none;box-shadow:0 4px 24px rgba(0,0,0,.18);z-index:100}
.lang-switch.open .lang-dropdown{display:block}
.lang-switch.open .lang-btn img{transform:rotate(180deg)}
.lang-opt{display:block;width:100%;padding:8px 14px;border:none;background:transparent;text-align:left;font-size:14px;color:#043431;cursor:pointer;border-radius:7px;font-family:inherit;transition:background .15s}
.lang-opt:hover{color:#27B86D}
.lang-opt.active{background:rgba(39,184,109,.1);color:#27B86D}

/* ===== Pages: Agreement / Privacy / Delete ===== */
.page-inner{display:none;min-height:100vh;flex-direction:column}
.page-inner.active{display:flex}
.page-download.active{display:flex}
.page-download{display:none}

.inner-header{max-width:1139px;width:100%;margin:0 auto;padding:30px 40px}
.inner-header img{height:36px}
.inner-body{flex:1;max-width:1139px;width:100%;margin:0 auto;padding:0 40px 60px}
.inner-title{font-size:36px;font-weight:700;color:#043431;text-align:center;margin-bottom:40px}
.inner-body .article{font-size:16px;line-height:30px;color:#043431}
.article h3{font-size:20px;font-weight:600;margin:28px 0 12px}
.article p,.article ul,.article ol{margin-bottom:14px}
.article ul,.article ol{padding-left:24px}
.article li{margin-bottom:6px}
.article strong{font-weight:600}
.article hr{border:none;border-top:1px solid #e0e0e0;margin:28px 0}
.article a{color:#27B86D;text-decoration:none}

/* Delete account page steps */
.steps-container{background:#F6F8F8;border-radius:16px;padding:40px 30px;margin-top:24px;display:flex;align-items:center;justify-content:center;gap:40px;flex-wrap:wrap}
.step-img{width:240px;border-radius:12px;box-shadow:0 2px 16px rgba(0,0,0,.08)}
.step-arrow{font-size:32px;color:#789695;user-select:none}

/* Dark footer for inner pages */
.dark-footer{background:#00120E;padding:28px 0}
.dark-footer-inner{max-width:1139px;margin:0 auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
.dark-footer-left{display:flex;align-items:center;gap:24px;font-size:12px;color:#789695}
.dark-footer-left a{color:#789695;text-decoration:none;transition:color .2s}
.dark-footer-left a:hover{color:#F6F8F8}

/* Dark-page lang switcher */
.dark-footer .lang-btn{border-color:rgba(255,255,255,.2);color:#F6F8F8}
.dark-footer .lang-btn:hover{background:rgba(246,248,248,.1)}

/* ===== Modal for agreements (from download page) ===== */
.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:500;justify-content:center;align-items:center}
.modal-overlay.active{display:flex}
.modal-box{background:#fff;border-radius:16px;width:90%;max-width:800px;max-height:80vh;overflow-y:auto;padding:40px}
.modal-box .inner-title{margin-bottom:24px}
.modal-close{position:sticky;top:0;float:right;background:none;border:none;font-size:28px;cursor:pointer;color:#043431;line-height:1;z-index:2}

/* ===== Responsive ===== */
@media(max-width:960px){
  .dl-content{padding-top:80px}
  .dl-logo{margin-bottom:60px}
  .dl-title{font-size:42px}
  .dl-buttons{grid-template-columns:1fr 1fr;max-width:480px}
  .dl-btn{height:64px;font-size:14px}
  .steps-container{gap:24px;padding:30px 20px}
  .step-img{width:180px}
  .inner-header{padding:24px 30px}
  .inner-body{padding:0 30px 40px}
}
@media(max-width:640px){
  /* Download page */
  .dl-content{padding:60px 20px 0}
  .dl-logo{margin-bottom:40px}
  .dl-title{font-size:32px;margin-bottom:32px}
  .dl-buttons{grid-template-columns:1fr;max-width:100%}
  .dl-btn{height:56px;font-size:14px;border-radius:28px}
  .dl-btn img{height:22px}
  .dl-footer{padding:0 20px 24px}
  .dl-footer-inner{flex-direction:column;align-items:flex-start;gap:16px}

  /* Inner pages */
  .inner-header{padding:20px}
  .inner-header img{height:28px}
  .inner-body{padding:0 20px 32px}
  .inner-title{font-size:24px;margin-bottom:28px}
  .inner-body .article{font-size:15px;line-height:28px}
  .article h3{font-size:18px;margin:22px 0 10px}

  /* Delete steps */
  .steps-container{flex-direction:column;gap:16px;padding:24px 16px}
  .step-arrow{transform:rotate(90deg);font-size:24px}
  .step-img{width:200px;max-width:100%}

  /* Dark footer */
  .dark-footer{padding:24px 0}
  .dark-footer-inner{flex-direction:column;align-items:flex-start;padding:0 20px;gap:16px}
  .dark-footer-left{flex-direction:column;align-items:flex-start;gap:10px}

  /* Lang switcher */
  .lang-btn{height:40px;padding:0 16px;font-size:13px}
  .lang-dropdown{bottom:auto;top:calc(100% + 8px);right:auto;left:0}

  /* Modal */
  .modal-box{padding:24px 20px;border-radius:12px}
}
@media(max-width:380px){
  .dl-title{font-size:26px}
  .dl-content{padding:48px 16px 0}
  .dl-logo{margin-bottom:32px}
  .dl-btn{height:50px;font-size:13px;gap:8px}
  .inner-header{padding:16px}
  .inner-body{padding:0 16px 24px}
  .inner-title{font-size:22px}
  .dark-footer-inner{padding:0 16px}
  .step-img{width:180px}
}
