/* Source code is the property of GitBusiness.com
   As of Dec. 2nd, 2020  Stan Switaj - Owner/CEO of GitBusiness.com
   Copyright 2020, All Rights Reserved
   Programmers:
               Stan Switaj - CEO/Lead Programmer

   Shared styling for the policy pages: Terms of Service, Cookie Policy and
   Privacy Policy. Standalone -- no bootstrap, no template stylesheets.
*/

:root {
    --gb-navy:        #0a1033;
    --gb-navy-deep:   #060a22;
    --gb-blue:        #2563eb;
    --gb-violet:      #7c3aed;
    --gb-cyan:        #22d3ee;
    --gb-ink:         #0f172a;
    --gb-body:        #3d4859;
    --gb-muted:       #64748b;
    --gb-line:        #e2e8f0;
    --gb-surface:     #ffffff;
    --gb-surface-alt: #f6f8fc;
    --gb-radius:      14px;
    --gb-radius-lg:   20px;
    --gb-header-h:    64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--gb-surface-alt);
    color: var(--gb-body);
    font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------- header */

.gb-legal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--gb-header-h);
    padding: 10px max(20px, env(safe-area-inset-left)) 10px max(20px, env(safe-area-inset-right));
    background: rgba(6,10,34,.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.gb-legal-header a.gb-legal-logo { display: block; line-height: 0; }
.gb-legal-header a.gb-legal-logo img { height: 28px; width: auto; }

.gb-legal-header .gb-legal-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease;
}

.gb-legal-header .gb-legal-home:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.6);
}

/* ------------------------------------------------------------ title band */

.gb-legal-hero {
    padding: 44px 20px 46px;
    background: linear-gradient(135deg, var(--gb-navy-deep) 0%, #131c4d 55%, #2a2c74 100%);
    color: #fff;
    text-align: center;
}

.gb-legal-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #dbeafe;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gb-legal-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gb-legal-hero p {
    margin: 0 auto;
    max-width: 60ch;
    color: rgba(255,255,255,.82);
    font-size: 15.5px;
}

@media (min-width: 768px) {
    .gb-legal-hero { padding: 62px 20px 64px; }
    .gb-legal-hero h1 { font-size: 40px; }
}

/* ---------------------------------------------------------------- body */

.gb-legal-wrap {
    max-width: 860px;
    margin: -26px auto 0;
    padding: 0 max(18px, env(safe-area-inset-left)) 56px max(18px, env(safe-area-inset-right));
}

.gb-legal-doc {
    padding: 30px 24px 34px;
    background: var(--gb-surface);
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius-lg);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 44px rgba(10,16,51,.1);
}

@media (min-width: 768px) {
    .gb-legal-doc { padding: 46px 52px 48px; }
}

.gb-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--gb-line);
    color: var(--gb-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.gb-legal-meta span { display: inline-flex; align-items: center; gap: 8px; }
.gb-legal-meta i { color: var(--gb-blue); }

.gb-legal-doc h2 {
    margin: 34px 0 12px;
    color: var(--gb-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.gb-legal-doc h2:first-of-type { margin-top: 0; }

@media (min-width: 768px) {
    .gb-legal-doc h2 { font-size: 23px; }
}

.gb-legal-doc p { margin: 0 0 16px; }

.gb-legal-doc p:last-child { margin-bottom: 0; }

.gb-legal-doc a { color: var(--gb-blue); font-weight: 600; }

/* -------------------------------------------------------- other policies */

.gb-legal-more { margin-top: 30px; }

.gb-legal-more h3 {
    margin: 0 0 14px;
    color: var(--gb-muted);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gb-legal-links { display: grid; gap: 12px; }

@media (min-width: 640px) {
    .gb-legal-links { grid-template-columns: 1fr 1fr; }
}

.gb-legal-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    background: var(--gb-surface);
    border: 1px solid var(--gb-line);
    border-radius: var(--gb-radius);
    color: var(--gb-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.gb-legal-links a:hover {
    border-color: var(--gb-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(10,16,51,.1);
}

.gb-legal-links i {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--gb-blue), var(--gb-violet));
    color: #fff;
    font-size: 14px;
}

/* -------------------------------------------------------------- footer */

.gb-legal-footer {
    padding: 26px 20px 32px;
    background: var(--gb-navy-deep);
    color: rgba(255,255,255,.66);
    font-size: 14px;
    text-align: center;
}

.gb-legal-footer strong { display: block; margin-bottom: 4px; color: #fff; font-size: 15.5px; }

.gb-legal-footer a { color: rgba(255,255,255,.86); font-weight: 600; text-decoration: none; }
.gb-legal-footer a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------- accessibility */

a:focus-visible {
    outline: 3px solid rgba(37,99,235,.55);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .001ms !important; }
}
